From 169bf0b8b073a5efde9875acf38e5a482749d028 Mon Sep 17 00:00:00 2001 From: Przemek Stekiel Date: Fri, 29 Apr 2022 07:53:29 +0200 Subject: [PATCH] Fix comments (#endif flags) Signed-off-by: Przemek Stekiel --- library/ssl_tls.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 3415c2805..e9e8b613f 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -5023,10 +5023,7 @@ static int ssl_use_opaque_psk( mbedtls_ssl_context const *ssl ) return( 0 ); } #endif /* MBEDTLS_USE_PSA_CRYPTO && - ( MBEDTLS_KEY_EXCHANGE_PSK_ENABLED || - MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED || - MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED || - MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED ) */ + MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED */ /* * Compute master secret if needed @@ -5096,7 +5093,7 @@ static int ssl_compute_master( mbedtls_ssl_handshake_params *handshake, MBEDTLS_SSL_DEBUG_BUF( 3, "session hash for extended master secret", session_hash, seed_len ); } -#endif /* MBEDTLS_SSL_EXTENDED_MS_ENABLED */ +#endif /* MBEDTLS_SSL_EXTENDED_MASTER_SECRET */ #if defined(MBEDTLS_USE_PSA_CRYPTO) && \ defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)