From c941b6cb313efb216388d7cfe78dad86af7274ae Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Mon, 28 Dec 2015 01:29:10 +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 65b8c88ee..bf6094156 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -7032,6 +7032,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, @@ -7046,6 +7047,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,