Naveed ebcb95c130 Add regression tests for ssl_context_load length checks
Backport the ssl_context_load_rejects_oob_length test function from
development in its final form, with cases for the serialized in_cid,
out_cid and ALPN lengths.

mbedtls_test_ssl_dtls_join_endpoints() and
mbedtls_test_ssl_perform_connection() do not exist on this branch, so
set up the DTLS endpoints and run the handshake with the helpers that
do: mbedtls_test_ssl_endpoint_init() with message queues,
mbedtls_test_mock_socket_connect() and
mbedtls_test_move_handshake_to_state(). Exchange application data
explicitly before saving the context, as
mbedtls_test_ssl_perform_connection() does on development: the server
keeps its handshake structure until then, and
mbedtls_ssl_context_save() refuses to run while it exists.

Signed-off-by: Naveed <naveed@bugqore.com>
2026-10-04 22:53:31 +05:30
..
.jenkins
configs crypto_config.h: Don't list mechanisms that are not implemented 2024-12-24 20:03:29 +01:00
git-scripts Header updates 2023-11-03 12:21:36 +00:00
include tests: ssl_helpers: fix documentation of mbedtls_test_ssl_check_context_after_session_reset 2026-07-29 11:36:27 +02:00
opt-testcases Revert "Added generated files" 2026-07-07 17:26:50 +01:00
scripts Clarify that this is the "calling script" 2026-09-15 12:04:47 +02:00
src Move context verifier to a better place 2026-07-29 11:36:43 +02:00
suites Add regression tests for ssl_context_load length checks 2026-10-04 22:53:31 +05:30
.gitignore Revert "Added generated files" 2026-07-07 17:26:50 +01:00
CMakeLists.txt Add branch specific generate_tls_handshake_tests.py file 2026-02-17 10:10:34 +01:00
compat-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
compat.sh Revert "ssl_server2.c: DTLS: Attempt to read the response to the close notification" 2026-03-23 19:18:26 +01:00
context-info.sh Update directory-climbing path in context-info.sh 2024-07-08 15:36:48 +01:00
Descriptions.txt
make-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
Makefile Merge pull request #10615 from gilles-peskine-arm/generate-psa_test_wrappers-3.6 2026-02-26 13:44:15 +00:00
ssl-opt.sh Merge pull request #1641 from gilles-peskine-arm/badmac_seen_or_in_hsfraglen-fix 2026-06-22 10:30:00 +02:00