1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Merge pull request #7071 from yuhaoth/pr/tls13-ticket-add-max_early_data_size-field

TLS 1.3 EarlyData: add `max_early_data_size` field for ticket
This commit is contained in:
Ronald Cron
2023-11-20 08:04:57 +00:00
committed by GitHub
5 changed files with 40 additions and 0 deletions

View File

@ -472,6 +472,10 @@ static int ssl_tls13_session_copy_ticket(mbedtls_ssl_session *dst,
}
memcpy(dst->resumption_key, src->resumption_key, src->resumption_key_len);
#if defined(MBEDTLS_SSL_EARLY_DATA)
dst->max_early_data_size = src->max_early_data_size;
#endif
return 0;
}
#endif /* MBEDTLS_SSL_SESSION_TICKETS */