mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Rename resumption_key and the hardcode len
`resumption_key` is better name. Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
@ -2055,7 +2055,7 @@ static int ssl_tls13_postprocess_new_session_ticket( mbedtls_ssl_context *ssl,
|
||||
MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN( resumption ),
|
||||
ticket_nonce,
|
||||
ticket_nonce_len,
|
||||
session->key,
|
||||
session->resumption_key,
|
||||
hash_length );
|
||||
|
||||
if( ret != 0 )
|
||||
@ -2066,11 +2066,11 @@ static int ssl_tls13_postprocess_new_session_ticket( mbedtls_ssl_context *ssl,
|
||||
return( ret );
|
||||
}
|
||||
|
||||
session->key_len = hash_length;
|
||||
session->resumption_key_len = hash_length;
|
||||
|
||||
MBEDTLS_SSL_DEBUG_BUF( 3, "Ticket-resumed PSK",
|
||||
session->key,
|
||||
session->key_len );
|
||||
session->resumption_key,
|
||||
session->resumption_key_len );
|
||||
|
||||
return( 0 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user