mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 12:05:38 +01:00
Fix unused variable warnings in ssl_client2/ssl_server2
This commit is contained in:
parent
801de73ad6
commit
10da2a39be
@ -707,6 +707,9 @@ static int my_verify( void *data, mbedtls_x509_crt *crt,
|
||||
|
||||
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
||||
|
||||
#if ( defined(MBEDTLS_X509_CRT_PARSE_C) && \
|
||||
!defined(MBEDTLS_SSL_CONF_SINGLE_HASH) ) || \
|
||||
!defined(MBEDTLS_CTR_DRBG_C)
|
||||
static int available_hashes[] = {
|
||||
#if defined(MBEDTLS_SHA512_C)
|
||||
MBEDTLS_MD_SHA512,
|
||||
@ -722,6 +725,8 @@ static int available_hashes[] = {
|
||||
#endif
|
||||
MBEDTLS_MD_NONE
|
||||
};
|
||||
#endif /* ( MBEDTLS_X509_CRT_PARSE_C && !MBEDTLS_SSL_CONF_SINGLE_HASH ) ||
|
||||
!MBEDTLS_CTR_DRBG_C */
|
||||
|
||||
/*
|
||||
* Wait for an event from the underlying transport or the timer
|
||||
|
@ -1137,6 +1137,9 @@ void term_handler( int sig )
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ( defined(MBEDTLS_X509_CRT_PARSE_C) && \
|
||||
!defined(MBEDTLS_SSL_CONF_SINGLE_HASH) ) || \
|
||||
!defined(MBEDTLS_CTR_DRBG_C)
|
||||
static int available_hashes[] = {
|
||||
#if defined(MBEDTLS_SHA512_C)
|
||||
MBEDTLS_MD_SHA512,
|
||||
@ -1152,6 +1155,8 @@ static int available_hashes[] = {
|
||||
#endif
|
||||
MBEDTLS_MD_NONE
|
||||
};
|
||||
#endif /* ( MBEDTLS_X509_CRT_PARSE_C && !MBEDTLS_SSL_CONF_SINGLE_HASH ) ||
|
||||
!MBEDTLS_CTR_DRBG_C */
|
||||
|
||||
/** Return true if \p ret is a status code indicating that there is an
|
||||
* operation in progress on an SSL connection, and false if it indicates
|
||||
|
Loading…
Reference in New Issue
Block a user