From 95acd9c9075100c848f5408bfab4feb69df5319a Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 21 Sep 2016 07:32:17 -0700 Subject: [PATCH] Fixed unused variable complaints when KEYGEN and OPENSSL_EXTRA are enabled and when AES and MD5 are disabled. It was in the same encrypt function as before and in the paired decrypt function. --- src/ssl.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 8409b774f..98bff0d2a 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -2416,7 +2416,9 @@ static const char *EVP_AES_256_CBC = "AES-256-CBC"; static const char *EVP_AES_192_CTR = "AES-192-CTR"; static const char *EVP_AES_256_CTR = "AES-256-CTR"; #endif +#ifndef NO_AES static const int EVP_AES_SIZE = 11; +#endif #ifndef NO_DES3 static const char *EVP_DES_CBC = "DES-CBC"; @@ -3331,6 +3333,9 @@ static int wolfssl_decrypt_buffer_key(DerBuffer* der, byte* password, byte key[AES_256_KEY_SIZE]; #endif + (void)passwordSz; + (void)key; + WOLFSSL_ENTER("wolfssl_decrypt_buffer_key"); if (der == NULL || password == NULL || info == NULL) { @@ -3362,8 +3367,7 @@ static int wolfssl_decrypt_buffer_key(DerBuffer* der, byte* password, #endif return SSL_FATAL_ERROR; } -#else - (void) passwordSz; + #endif /* NO_MD5 */ #ifndef NO_DES3 @@ -3414,6 +3418,7 @@ static int wolfssl_encrypt_buffer_key(byte* der, word32 derSz, byte* password, (void)derSz; (void)passwordSz; + (void)key; WOLFSSL_ENTER("wolfssl_encrypt_buffer_key");