Gilles Peskine 0038408f55 Properly initialize SSL endpoint objects
In some cases, we were calling `mbedtls_test_ssl_endpoint_free()` on an
uninitialized `mbedtls_test_ssl_endpoint` object if the test case failed
early, e.g. due to `psa_crypto_init()` failing. This was largely harmless,
but could have caused weird test results in case of failure, and was flagged
by Coverity.

Use a more systematic style for initializing the stack object as soon as
it's declared.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-06-27 11:12:55 +01:00
..
test_suite_config.function New test suite to report configuration options 2024-06-20 17:10:24 +02:00
test_suite_config.tls_combinations.data New test suite to report configuration options 2024-06-20 17:10:24 +02:00
test_suite_constant_time_hmac.data Move test_suite_constant_time_hmac back to mbedtls 2024-10-01 15:32:01 +02:00
test_suite_constant_time_hmac.function Move test_suite_constant_time_hmac back to mbedtls 2024-10-01 15:32:01 +02:00
test_suite_debug.data Use an array of strings instead of pointer smuggling 2025-03-12 19:14:50 +01:00
test_suite_debug.function initial remove of mbedtls_ssl_conf_rng 2025-03-26 13:32:10 +00:00
test_suite_error.data Move tests for error.c from tf-psa-crypto to Mbed TLS 2024-10-18 08:19:50 +01:00
test_suite_error.function Fix test case dependency 2024-10-21 12:07:27 +01:00
test_suite_mps.data
test_suite_mps.function Add missing exit labels to MPS tests 2023-10-20 19:14:46 +01:00
test_suite_net.data
test_suite_net.function
test_suite_pkcs7.data Replace MBEDTLS_MD_CAN_SHA1 with PSA_WANT_ALG_SHA_1 2024-09-04 18:12:59 +01:00
test_suite_pkcs7.function test: suites: pkcs7/x509parse: add missing PSA_INIT and PSA_DONE 2025-05-28 15:47:42 +02:00
test_suite_ssl_decrypt.function Replace __attribute__((nonstring)) with macro MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING 2025-06-20 11:48:16 +01:00
test_suite_ssl_decrypt.misc.data Replace MBEDTLS_MD_CAN_SHA1 with PSA_WANT_ALG_SHA_1 2024-09-04 18:12:59 +01:00
test_suite_ssl.data Fix dependencies for TLS-Exporter tests 2025-03-28 17:08:12 +01:00
test_suite_ssl.function Properly initialize SSL endpoint objects 2025-06-27 11:12:55 +01:00
test_suite_ssl.records.data Use HANDSHAKE_OVER in nominal test cases 2025-04-10 10:18:44 +02:00
test_suite_ssl.tls-defrag.data Adapt dependencies to the new world 2025-03-14 09:22:09 +01:00
test_suite_test_helpers.data Basic functional test for memory poisoning 2023-11-29 19:22:03 +01:00
test_suite_test_helpers.function Update documentation regarding metatest 2025-02-19 15:30:25 +00:00
test_suite_timing.data Move back timing.c to mbedtls 2024-12-04 14:25:02 +01:00
test_suite_timing.function Move back timing.c to mbedtls 2024-12-04 14:25:02 +01:00
test_suite_version.data test-data: Adjusted check-feature test to seek MBEDTLS_TIMING_C. 2024-12-04 09:57:56 +00:00
test_suite_version.function Move version tests from tf-psa-crypto/test/suite to test/suites 2024-10-04 13:37:42 +01:00
test_suite_x509_oid.data Remove MBEDTLS_OID_X509_EXT_xxx constants 2025-06-03 15:51:34 +02:00
test_suite_x509_oid.function Replace MBEDTLS_OID_C by function-specific dependencies 2025-06-03 15:51:34 +02:00
test_suite_x509parse.data Replace MBEDTLS_ERR_OID_NOT_FOUND with MBEDTLS_ERR_X509_UNKNOWN_OID 2025-06-03 15:51:34 +02:00
test_suite_x509parse.function tests|programs: remove usage of mbedtls_ecp_set_max_ops() 2025-06-12 06:39:18 +02:00
test_suite_x509write.data Fix invalid test data by aligning with 3.6 2025-06-12 09:42:03 +02:00
test_suite_x509write.function Merge remote-tracking branch 'restricted/development-restricted' into future_rc 2025-06-27 10:50:33 +01:00