From 163e12f7ffacae88b27ca164ac9c654b3f5f8b0f Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Tue, 5 Dec 2023 10:37:23 +0800 Subject: [PATCH] remove assignment for `session->max_early_data_size` Signed-off-by: Jerry Yu --- library/ssl_tls13_server.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/library/ssl_tls13_server.c b/library/ssl_tls13_server.c index 22f8ab726..6c49f8d52 100644 --- a/library/ssl_tls13_server.c +++ b/library/ssl_tls13_server.c @@ -247,11 +247,6 @@ static int ssl_tls13_offered_psks_check_identity_match_ticket( #endif /* MBEDTLS_HAVE_TIME */ -#if defined(MBEDTLS_SSL_EARLY_DATA) - MBEDTLS_SSL_DEBUG_MSG(2, ("ticket->max_early_data_size=%u", - (unsigned int) session->max_early_data_size)); -#endif - exit: if (ret != 0) { mbedtls_ssl_session_free(session); @@ -3259,9 +3254,6 @@ static int ssl_tls13_write_new_session_ticket_body(mbedtls_ssl_context *ssl, ssl->conf->max_early_data_size > 0) { mbedtls_ssl_session_set_ticket_flags( session, MBEDTLS_SSL_TLS1_3_TICKET_ALLOW_EARLY_DATA); - /* In resumption connection, server get `max_early_data_size` from - * ticket. */ - session->max_early_data_size = ssl->conf->max_early_data_size; } #endif /* MBEDTLS_SSL_EARLY_DATA */