tls12: Fix documentation of TLS 1.2 session serialized data
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
7b0ac0b980
commit
a93e25e749
1 changed files with 17 additions and 12 deletions
|
@ -8939,6 +8939,11 @@ unsigned int mbedtls_ssl_tls12_get_preferred_hash_for_sig_alg(
|
||||||
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
||||||
|
|
||||||
/* Serialization of TLS 1.2 sessions:
|
/* Serialization of TLS 1.2 sessions:
|
||||||
|
*
|
||||||
|
* struct {
|
||||||
|
* opaque ticket<0..2^24-1>; // length 0 means no ticket
|
||||||
|
* uint32 ticket_lifetime;
|
||||||
|
* } ClientOnlyData;
|
||||||
*
|
*
|
||||||
* struct {
|
* struct {
|
||||||
* uint64 start_time;
|
* uint64 start_time;
|
||||||
|
@ -8947,13 +8952,13 @@ unsigned int mbedtls_ssl_tls12_get_preferred_hash_for_sig_alg(
|
||||||
* opaque master[48]; // fixed length in the standard
|
* opaque master[48]; // fixed length in the standard
|
||||||
* uint32 verify_result;
|
* uint32 verify_result;
|
||||||
* opaque peer_cert<0..2^24-1>; // length 0 means no peer cert
|
* opaque peer_cert<0..2^24-1>; // length 0 means no peer cert
|
||||||
* opaque ticket<0..2^24-1>; // length 0 means no ticket
|
* select (endpoint) {
|
||||||
* uint32 ticket_lifetime;
|
* case client: ClientOnlyData;
|
||||||
* uint64 ticket_creation_time;
|
* case server: uint64 ticket_creation_time;
|
||||||
|
* };
|
||||||
* uint8 mfl_code; // up to 255 according to standard
|
* uint8 mfl_code; // up to 255 according to standard
|
||||||
* uint8 encrypt_then_mac; // 0 or 1
|
* uint8 encrypt_then_mac; // 0 or 1
|
||||||
* } serialized_session_tls12;
|
* } serialized_session_tls12;
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
static size_t ssl_tls12_session_save(const mbedtls_ssl_session *session,
|
static size_t ssl_tls12_session_save(const mbedtls_ssl_session *session,
|
||||||
unsigned char *buf,
|
unsigned char *buf,
|
||||||
|
|
Loading…
Reference in a new issue