1
0
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:
Jerry Yu
2022-07-20 11:02:48 +08:00
parent b14413804a
commit 0a430c8aaf
2 changed files with 13 additions and 11 deletions

View File

@ -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 );
}