Fix some hash debugging

This commit is contained in:
Manuel Pégourié-Gonnard 2013-08-27 14:29:44 +02:00
parent 4bd1284f59
commit 9cc6f5c61b
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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