From ba6e2b103716f3e353824b1df69253a5c1b07c4d Mon Sep 17 00:00:00 2001 From: John Safranek Date: Thu, 22 Sep 2016 11:41:16 -0700 Subject: [PATCH] move an ifndef NO_AES for one more configure disable/enable combination --- src/ssl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 2eba4f2d0..b874dde04 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -2441,6 +2441,7 @@ int wolfSSL_CertPemToDer(const unsigned char* pem, int pemSz, #if defined(OPENSSL_EXTRA) || defined(HAVE_WEBSERVER) +#ifndef NO_AES static const char *EVP_AES_128_CBC = "AES-128-CBC"; static const char *EVP_AES_192_CBC = "AES-192-CBC"; static const char *EVP_AES_256_CBC = "AES-256-CBC"; @@ -2449,7 +2450,6 @@ 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 @@ -9775,6 +9775,8 @@ int wolfSSL_set_compression(WOLFSSL* ssl) /* do nothing */ } + #ifndef NO_AES + const WOLFSSL_EVP_CIPHER* wolfSSL_EVP_aes_128_cbc(void) { WOLFSSL_ENTER("wolfSSL_EVP_aes_128_cbc"); @@ -9816,6 +9818,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl) return EVP_AES_256_CTR; } + #endif /* NO_AES */ #ifndef NO_DES3 const WOLFSSL_EVP_CIPHER* wolfSSL_EVP_des_cbc(void)