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 */