From c3d52b905b6b8cf58f248088a19aaa61a27c6a97 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Tue, 21 Apr 2026 12:14:01 +0200 Subject: [PATCH] check_config: fix error message for missing TLS 1.2 key exchanges Align the error message to the one used for the same check in TLS 1.3. Signed-off-by: Valerio Setti --- library/mbedtls_check_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/mbedtls_check_config.h b/library/mbedtls_check_config.h index bf0e35787c..629e6a1909 100644 --- a/library/mbedtls_check_config.h +++ b/library/mbedtls_check_config.h @@ -138,8 +138,8 @@ defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED) || \ defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED) || \ defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED) ) -#error "One or more versions of the TLS protocol are enabled " \ - "but no key exchange methods defined with MBEDTLS_KEY_EXCHANGE_xxxx" +#error "TLS 1.2 protocol is enabled but no key exchange method is defined" \ + "with MBEDTLS_KEY_EXCHANGE_xxxx" #endif #if defined(MBEDTLS_SSL_PROTO_TLS1_3) && \