mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 13:20:30 +00:00
Restore debug message removed by mistake
Also while at it, fix debug level for existing DEBUG_RET: errors should always be level 1. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
8e176f747c
commit
da7979bb91
@ -1392,7 +1392,7 @@ int mbedtls_ssl_reset_transcript_for_hrr(mbedtls_ssl_context *ssl)
|
|||||||
PSA_HASH_MAX_SIZE,
|
PSA_HASH_MAX_SIZE,
|
||||||
&hash_len);
|
&hash_len);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
MBEDTLS_SSL_DEBUG_RET(4, "mbedtls_ssl_get_handshake_transcript", ret);
|
MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_ssl_get_handshake_transcript", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1403,6 +1403,9 @@ int mbedtls_ssl_reset_transcript_for_hrr(mbedtls_ssl_context *ssl)
|
|||||||
|
|
||||||
hash_len += 4;
|
hash_len += 4;
|
||||||
|
|
||||||
|
MBEDTLS_SSL_DEBUG_BUF(4, "Truncated handshake transcript",
|
||||||
|
hash_transcript, hash_len);
|
||||||
|
|
||||||
/* Reset running hash and replace it with a hash of the transcript */
|
/* Reset running hash and replace it with a hash of the transcript */
|
||||||
ret = mbedtls_ssl_reset_checksum(ssl);
|
ret = mbedtls_ssl_reset_checksum(ssl);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user