remove assignment for session->max_early_data_size

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2023-12-05 10:37:23 +08:00
parent ebe1de62f9
commit 163e12f7ff

View file

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