mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Merge remote-tracking branch 'origin/development' into default-compiler-all
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
@ -8215,14 +8215,6 @@ static int ssl_tls12_populate_transform(mbedtls_ssl_transform *transform,
|
||||
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
|
||||
#endif
|
||||
|
||||
#if !defined(MBEDTLS_DEBUG_C) && \
|
||||
!defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
|
||||
if (ssl->f_export_keys == NULL) {
|
||||
ssl = NULL; /* make sure we don't use it except for these cases */
|
||||
(void) ssl;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Some data just needs copying into the structure
|
||||
*/
|
||||
@ -8494,7 +8486,7 @@ static int ssl_tls12_populate_transform(mbedtls_ssl_transform *transform,
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (ssl != NULL && ssl->f_export_keys != NULL) {
|
||||
if (ssl->f_export_keys != NULL) {
|
||||
ssl->f_export_keys(ssl->p_export_keys,
|
||||
MBEDTLS_SSL_KEY_EXPORT_TLS12_MASTER_SECRET,
|
||||
master, 48,
|
||||
|
@ -1128,11 +1128,11 @@ read_record_header:
|
||||
msg_len -= mbedtls_ssl_hs_hdr_len(ssl);
|
||||
|
||||
/*
|
||||
* ClientHello layer:
|
||||
* ClientHello layout:
|
||||
* 0 . 1 protocol version
|
||||
* 2 . 33 random bytes (starting with 4 bytes of Unix time)
|
||||
* 34 . 35 session id length (1 byte)
|
||||
* 35 . 34+x session id
|
||||
* 34 . 34 session id length (1 byte)
|
||||
* 35 . 34+x session id, where x = session id length from byte 34
|
||||
* 35+x . 35+x DTLS only: cookie length (1 byte)
|
||||
* 36+x . .. DTLS only: cookie
|
||||
* .. . .. ciphersuite list length (2 bytes)
|
||||
|
Reference in New Issue
Block a user