aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_crypter.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-04-17 17:34:22 +0200
committerTobias Brunner <tobias@strongswan.org>2015-04-17 17:43:58 +0200
commitf9342fac8f315f43a9c18ff7c623fbddb450928c (patch)
tree62f7526f849fd1efa1fe0dfde9f5e7b0e1fa3ead /src/libstrongswan/plugins/openssl/openssl_crypter.c
parentbef227c580f66e30ff6254f87209a799e6302251 (diff)
downloadstrongswan-f9342fac8f315f43a9c18ff7c623fbddb450928c.tar.bz2
strongswan-f9342fac8f315f43a9c18ff7c623fbddb450928c.tar.xz
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.
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_crypter.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_crypter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_crypter.c b/src/libstrongswan/plugins/openssl/openssl_crypter.c
index c2478a4ed..26f4700b8 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;