mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-22 04:01:53 +03:00
Fix unused variable with MBEDTLS_SHA512_NO_SHA384
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -1450,7 +1450,8 @@ static int ssl_set_handshake_prfs( mbedtls_ssl_handshake_params *handshake,
|
||||
int minor_ver,
|
||||
mbedtls_md_type_t hash )
|
||||
{
|
||||
#if !defined(MBEDTLS_SSL_PROTO_TLS1_2) || !defined(MBEDTLS_SHA512_C)
|
||||
#if !defined(MBEDTLS_SSL_PROTO_TLS1_2) || \
|
||||
!( defined(MBEDTLS_SHA512_C) && !defined(MBEDTLS_SHA512_NO_SHA384) )
|
||||
(void) hash;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user