From bbd0e197cb1451d2892e16aa780c48d4a3766cdd Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Mon, 19 Jul 2021 14:20:11 +0800 Subject: [PATCH] merge to cert_usage Change-Id: I8a2683cb5ab38a2e831048cb6a53f3b3db123cec CustomizedGitHooks: yes --- library/ssl_tls.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index aeea3e4d0a5c..49a74187462e 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -8667,11 +8667,7 @@ int mbedtls_ssl_check_cert_usage( const mbedtls_x509_crt* cert, if( cert_endpoint == MBEDTLS_SSL_IS_SERVER ) { /* Server part of the key exchange */ -#if defined(MBEDTLS_SSL_PROTO_TLS1_2_OR_EARLIER) - switch( ciphersuite->key_exchange ) -#else /* defined(MBEDTLS_SSL_PROTO_TLS1_2_OR_EARLIER) */ switch( key_exchange ) -#endif /* !defined(MBEDTLS_SSL_PROTO_TLS1_2_OR_EARLIER) */ { case MBEDTLS_KEY_EXCHANGE_RSA: case MBEDTLS_KEY_EXCHANGE_RSA_PSK: