mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-06-05 00:22:11 +03:00
Update serialized session description with ALPN information
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
parent
1102563685
commit
fe9ae085e3
@ -3737,25 +3737,6 @@ static int ssl_tls12_session_load(mbedtls_ssl_session *session,
|
|||||||
/* Serialization of TLS 1.3 sessions:
|
/* Serialization of TLS 1.3 sessions:
|
||||||
*
|
*
|
||||||
* For more detail, see the description of ssl_session_save().
|
* For more detail, see the description of ssl_session_save().
|
||||||
* struct {
|
|
||||||
* opaque hostname<0..2^16-1>;
|
|
||||||
* uint64 ticket_reception_time;
|
|
||||||
* uint32 ticket_lifetime;
|
|
||||||
* opaque ticket<1..2^16-1>;
|
|
||||||
* } ClientOnlyData;
|
|
||||||
*
|
|
||||||
* struct {
|
|
||||||
* uint32 ticket_age_add;
|
|
||||||
* uint8 ticket_flags;
|
|
||||||
* opaque resumption_key<0..255>;
|
|
||||||
* uint32 max_early_data_size;
|
|
||||||
* uint16 record_size_limit;
|
|
||||||
* select ( endpoint ) {
|
|
||||||
* case client: ClientOnlyData;
|
|
||||||
* case server: uint64 ticket_creation_time;
|
|
||||||
* };
|
|
||||||
* } serialized_session_tls13;
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
|
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
|
||||||
MBEDTLS_CHECK_RETURN_CRITICAL
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
@ -4244,6 +4225,10 @@ static const unsigned char ssl_serialized_session_header[] = {
|
|||||||
* #if defined(MBEDTLS_HAVE_TIME)
|
* #if defined(MBEDTLS_HAVE_TIME)
|
||||||
* case server: uint64 ticket_creation_time;
|
* case server: uint64 ticket_creation_time;
|
||||||
* #endif
|
* #endif
|
||||||
|
* #if defined(MBEDTLS_SSL_EARLY_DATA) && defined(MBEDTLS_SSL_ALPN)
|
||||||
|
* uint8 alpn_len;
|
||||||
|
* opaque ticket_alpn<0..255>;
|
||||||
|
* #endif
|
||||||
* };
|
* };
|
||||||
* } serialized_session_tls13;
|
* } serialized_session_tls13;
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user