From feb105c042e95d07d23fdea25bc608a191e27c9e Mon Sep 17 00:00:00 2001 From: Elena Uziunaite Date: Thu, 5 Sep 2024 13:08:59 +0100 Subject: [PATCH] Address review comment Signed-off-by: Elena Uziunaite --- include/mbedtls/check_config.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/include/mbedtls/check_config.h b/include/mbedtls/check_config.h index 4deb1b3123..20b0ed610e 100644 --- a/include/mbedtls/check_config.h +++ b/include/mbedtls/check_config.h @@ -832,18 +832,10 @@ #endif /* TLS 1.2 and 1.3 require SHA-256 or SHA-384 (running handshake hash) */ -#if defined(MBEDTLS_SSL_TLS_C) -#if defined(MBEDTLS_USE_PSA_CRYPTO) -#if !(defined(PSA_WANT_ALG_SHA_256) || defined(PSA_WANT_ALG_SHA_384)) -#error "MBEDTLS_SSL_TLS_C defined, but not all prerequisites" -#endif -#else /* MBEDTLS_USE_PSA_CRYPTO */ -#if !defined(MBEDTLS_MD_C) || \ +#if defined(MBEDTLS_SSL_TLS_C) && \ !(defined(PSA_WANT_ALG_SHA_256) || defined(PSA_WANT_ALG_SHA_384)) #error "MBEDTLS_SSL_TLS_C defined, but not all prerequisites" #endif -#endif /* MBEDTLS_USE_PSA_CRYPTO */ -#endif /* MBEDTLS_SSL_TLS_C */ #if defined(MBEDTLS_SSL_SRV_C) && !defined(MBEDTLS_SSL_TLS_C) #error "MBEDTLS_SSL_SRV_C defined, but not all prerequisites"