mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 12:15:28 +00:00
Add configuration identifier to serialized SSL sessions
This commit adds space for two bytes in the header of serizlied SSL sessions which can be used to determine the structure of the remaining serialized session in the respective version of Mbed TLS. Specifically, if parts of the session depend on whether specific compile-time options are set or not, the setting of these options can be encoded in the added space. This commit doesn't yet make use of the fields.
This commit is contained in:
parent
b5352f0489
commit
557fe9ffde
|
@ -8785,6 +8785,8 @@ const mbedtls_ssl_session *mbedtls_ssl_get_session_pointer( const mbedtls_ssl_co
|
|||
MBEDTLS_VERSION_MAJOR,
|
||||
MBEDTLS_VERSION_MINOR,
|
||||
MBEDTLS_VERSION_PATCH,
|
||||
0xFF /* TBD */,
|
||||
0xFF /* TBD */
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -8792,6 +8794,13 @@ const mbedtls_ssl_session *mbedtls_ssl_get_session_pointer( const mbedtls_ssl_co
|
|||
* (in the presentation language of TLS, RFC 8446 section 3)
|
||||
*
|
||||
* opaque mbedtls_version[3]; // major, minor, patch
|
||||
* opaque session_format[2]; // version-specific 16-bit field determining
|
||||
* // the format of the remaining serialized
|
||||
* // data. For example, it could be a bitfield
|
||||
* // indicating the setting of those compile-
|
||||
* // time configuration options influencing
|
||||
* // the format of the serialized data.
|
||||
* // Unused so far.
|
||||
* uint64 start_time;
|
||||
* uint8 ciphersuite[2]; // defined by the standard
|
||||
* uint8 compression; // 0 or 1
|
||||
|
|
Loading…
Reference in a new issue