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 <joachim.bauernberger@protonmail.com>
This commit is contained in:
Joachim Bauernberger 2026-10-25 21:10:17 +01:00
parent f958c05fa7
commit 4125b6d355

View File

@ -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)
{