mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-13 16:18:52 +00:00
Fix some hash debugging
This commit is contained in:
parent
4bd1284f59
commit
9cc6f5c61b
@ -1453,7 +1453,8 @@ static int ssl_parse_server_key_exchange( ssl_context *ssl )
|
||||
md_free_ctx( &ctx );
|
||||
}
|
||||
|
||||
SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen );
|
||||
SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen != 0 ? hashlen :
|
||||
(unsigned int) ( md_info_from_type( md_alg ) )->size );
|
||||
|
||||
/*
|
||||
* Verify signature
|
||||
|
@ -2040,7 +2040,8 @@ static int ssl_write_server_key_exchange( ssl_context *ssl )
|
||||
|
||||
}
|
||||
|
||||
SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen );
|
||||
SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen != 0 ? hashlen :
|
||||
(unsigned int) ( md_info_from_type( md_alg ) )->size );
|
||||
|
||||
/*
|
||||
* Make the signature
|
||||
|
Loading…
x
Reference in New Issue
Block a user