From: Tobias Brunner Date: Fri, 17 Apr 2015 15:34:22 +0000 (+0200) Subject: openssl: Don't refer to EVP_des_ecb() if OpenSSL is built without DES support X-Git-Tag: 5.3.1dr1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9342fac8f315f43a9c18ff7c623fbddb450928c;p=thirdparty%2Fstrongswan.git openssl: Don't refer to EVP_des_ecb() if OpenSSL is built without DES support While DES-ECB is not registered by the plugin in this case (so the function will never actually be called), the compiler still warns about the implicitly declared function. --- diff --git a/src/libstrongswan/plugins/openssl/openssl_crypter.c b/src/libstrongswan/plugins/openssl/openssl_crypter.c index c2478a4ed9..26f4700b81 100644 --- a/src/libstrongswan/plugins/openssl/openssl_crypter.c +++ b/src/libstrongswan/plugins/openssl/openssl_crypter.c @@ -226,10 +226,12 @@ openssl_crypter_t *openssl_crypter_create(encryption_algorithm_t algo, return NULL; } break; +#ifndef OPENSSL_NO_DES case ENCR_DES_ECB: key_size = 8; this->cipher = EVP_des_ecb(); break; +#endif default: { char* name;