From 3549b6f4a88b5e5ebd2bd16ff7e36668582618e6 Mon Sep 17 00:00:00 2001 From: Janos Follath Date: Tue, 10 Mar 2026 14:02:38 +0000 Subject: [PATCH] Fix the MBEDTLS_TEST_HAS_ADDITIONAL_HASH macro It should require a hash that is configured in TLS 1.2 SSL contexts by default. Signed-off-by: Janos Follath --- tests/include/test/ssl_helpers.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/include/test/ssl_helpers.h b/tests/include/test/ssl_helpers.h index 0af9f7bc38..f49cceca15 100644 --- a/tests/include/test/ssl_helpers.h +++ b/tests/include/test/ssl_helpers.h @@ -91,12 +91,10 @@ /* * To use the test keys we need PSA_WANT_ALG_SHA_256. Some test cases need an additional hash that - * can be used in modern TLS, but it doesn't matter which one. + * is configured by default (see mbedtls_ssl_config_defaults()), but it doesn't matter which one. */ #if defined(MBEDTLS_SHA512_C) || \ - defined(MBEDTLS_SHA384_C) || \ - defined(MBEDTLS_SHA256) || \ - defined(MBEDTLS_SHA1_C) + defined(MBEDTLS_SHA384_C) #define MBEDTLS_TEST_HAS_ADDITIONAL_HASH #endif