From be98f96de2dc7f41497c87e2b48bcaaf6f4d2a6e Mon Sep 17 00:00:00 2001 From: Xiaokang Qian Date: Sat, 8 Oct 2022 11:09:20 +0000 Subject: [PATCH] Remove useless hostname check in server side Signed-off-by: Xiaokang Qian --- library/ssl_tls13_server.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/library/ssl_tls13_server.c b/library/ssl_tls13_server.c index 60b1e05f43..61a1bad578 100644 --- a/library/ssl_tls13_server.c +++ b/library/ssl_tls13_server.c @@ -235,20 +235,6 @@ static int ssl_tls13_offered_psks_check_identity_match_ticket( (int)age_diff_in_ms ) ); goto exit; } -#if 0 -#if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION) - if( ssl->session_negotiate->hostname != NULL && - ssl->session_negotiate->hostname_len != 0 && - memcmp( ssl->session_negotiate->hostname, - ssl->session->hostname, ssl->session->hostname_len ) != 0 ) - { - MBEDTLS_SSL_DEBUG_MSG( - 3, ( "Session hostname not matched with stored session ticket" ) ); - goto exit; - } - -#endif /* MBEDTLS_SSL_SERVER_NAME_INDICATION */ -#endif ret = 0;