From 6cb4fcd1a5b6e3a5a359692850cc37cf35990c27 Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Wed, 20 Jul 2022 22:40:00 +0800 Subject: [PATCH] Remove key exchange mode check. This change does not meet RFC requirements. It should be revert after key exchange mode issue fixed Signed-off-by: Jerry Yu --- library/ssl_tls13_server.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/library/ssl_tls13_server.c b/library/ssl_tls13_server.c index e0527e1fa..b27136d52 100644 --- a/library/ssl_tls13_server.c +++ b/library/ssl_tls13_server.c @@ -1837,12 +1837,6 @@ static int ssl_tls13_write_new_session_ticket_coordinate( mbedtls_ssl_context *s return( SSL_NEW_SESSION_TICKET_SKIP ); } - if( !mbedtls_ssl_tls13_some_psk_enabled( ssl ) ) - { - MBEDTLS_SSL_DEBUG_MSG( 2, ( "psk or psk_ephemeral is not enabled" ) ); - return( SSL_NEW_SESSION_TICKET_SKIP ); - } - return( SSL_NEW_SESSION_TICKET_WRITE ); }