From 4125b6d355c55ce0c4cd8c11e9eae54f13aa6306 Mon Sep 17 00:00:00 2001 From: Joachim Bauernberger Date: Sun, 25 Oct 2026 21:10:17 +0100 Subject: [PATCH] Fix the dependencies of the supported_groups parser test mbedtls_ssl_tls13_parse_supported_groups_ext() only exists when PSA_WANT_ALG_ECDH or PSA_WANT_ALG_FFDH is enabled, but its test only depended on MBEDTLS_TEST_HOOKS, MBEDTLS_SSL_SRV_C and MBEDTLS_SSL_PROTO_TLS1_3. test_suite_ssl therefore failed to build in configurations without ECDH and FFDH, such as the one of the test_tls13_only_psk component. Also depend on MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_SOME_EPHEMERAL_ENABLED, as the key_share parser test does. The ephemeral key exchange modes require ECDH or FFDH, so the parser is available whenever this dependency is met. Signed-off-by: Joachim Bauernberger --- tests/suites/test_suite_ssl.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function index 51174cc04f..fd94fddd14 100644 --- a/tests/suites/test_suite_ssl.function +++ b/tests/suites/test_suite_ssl.function @@ -4608,7 +4608,7 @@ exit: } /* END_CASE */ -/* BEGIN_CASE depends_on:MBEDTLS_TEST_HOOKS:MBEDTLS_SSL_SRV_C:MBEDTLS_SSL_PROTO_TLS1_3 */ +/* BEGIN_CASE depends_on:MBEDTLS_TEST_HOOKS:MBEDTLS_SSL_SRV_C:MBEDTLS_SSL_PROTO_TLS1_3:MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_SOME_EPHEMERAL_ENABLED */ void tls13_server_parse_supported_groups_ext(data_t *ext, int expected_result, int expected_alert) {