From c2865197478cddf22572c774481fb90db2c2f461 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Wed, 7 Feb 2024 14:01:03 +0100 Subject: [PATCH] tls13: srv: Do not forget to include max_early_data_size in the ticket Signed-off-by: Ronald Cron --- library/ssl_tls13_server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/ssl_tls13_server.c b/library/ssl_tls13_server.c index 3a968aa964..2391915357 100644 --- a/library/ssl_tls13_server.c +++ b/library/ssl_tls13_server.c @@ -3141,6 +3141,7 @@ static int ssl_tls13_prepare_new_session_ticket(mbedtls_ssl_context *ssl, ssl->conf->max_early_data_size > 0) { mbedtls_ssl_tls13_session_set_ticket_flags( session, MBEDTLS_SSL_TLS1_3_TICKET_ALLOW_EARLY_DATA); + session->max_early_data_size = ssl->conf->max_early_data_size; } #endif /* MBEDTLS_SSL_EARLY_DATA */