From c97b69793910b3623433db7d46094c3f75b2e18b Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Sun, 27 Dec 2015 23:48:17 +0000 Subject: [PATCH] Fix for unused variable warning --- library/ssl_tls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index f5dcdee02..4424f5677 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -7097,6 +7097,7 @@ void mbedtls_ssl_config_init( mbedtls_ssl_config *conf ) memset( conf, 0, sizeof( mbedtls_ssl_config ) ); } +#if defined(MBEDTLS_KEY_EXCHANGE__WITH_CERT__ENABLED) static int ssl_preset_default_hashes[] = { #if defined(MBEDTLS_SHA512_C) MBEDTLS_MD_SHA512, @@ -7111,6 +7112,7 @@ static int ssl_preset_default_hashes[] = { #endif MBEDTLS_MD_NONE }; +#endif static int ssl_preset_suiteb_ciphersuites[] = { MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,