1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-07 06:42:56 +03:00

set init value for max_early_data_size in session

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu
2023-11-15 14:51:18 +08:00
parent db6fda71e5
commit 525990fb62
2 changed files with 6 additions and 0 deletions

View File

@@ -564,6 +564,9 @@ static int ssl_tls13_parse_pre_shared_key_ext(
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
mbedtls_ssl_session session;
mbedtls_ssl_session_init(&session);
#if defined(MBEDTLS_SSL_EARLY_DATA)
session.max_early_data_size = ssl->conf->max_early_data_size;
#endif
#endif
MBEDTLS_SSL_CHK_BUF_READ_PTR(p_identity_len, identities_end, 2 + 1 + 4);