aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_plugin.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-03-01 16:56:37 +0100
committerTobias Brunner <tobias@strongswan.org>2013-03-01 16:57:45 +0100
commit4c969f790692d9f93105cef7abe066bc4222f09b (patch)
treec80ee25adc50327031818e1cbb39c064126e162d /src/libstrongswan/plugins/openssl/openssl_plugin.c
parent4dd8d5430d5999291184bdc2e9184df8b1a90e08 (diff)
downloadstrongswan-4c969f790692d9f93105cef7abe066bc4222f09b.tar.bz2
strongswan-4c969f790692d9f93105cef7abe066bc4222f09b.tar.xz
openssl: The EVP GCM interface requires at least OpenSSL 1.0.1
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_plugin.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_plugin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_plugin.c b/src/libstrongswan/plugins/openssl/openssl_plugin.c
index 282fe2b1b..915082234 100644
--- a/src/libstrongswan/plugins/openssl/openssl_plugin.c
+++ b/src/libstrongswan/plugins/openssl/openssl_plugin.c
@@ -305,6 +305,7 @@ METHOD(plugin_t, get_features, int,
PLUGIN_PROVIDE(SIGNER, AUTH_HMAC_SHA2_512_256),
#endif
#endif /* OPENSSL_NO_HMAC */
+#if OPENSSL_VERSION_NUMBER >= 0x1000100fL
#ifndef OPENSSL_NO_AES
/* AES GCM */
PLUGIN_REGISTER(AEAD, openssl_gcm_create),
@@ -318,6 +319,7 @@ METHOD(plugin_t, get_features, int,
PLUGIN_PROVIDE(AEAD, ENCR_AES_GCM_ICV16, 24),
PLUGIN_PROVIDE(AEAD, ENCR_AES_GCM_ICV16, 32),
#endif /* OPENSSL_NO_AES */
+#endif /* OPENSSL_VERSION_NUMBER */
#ifndef OPENSSL_NO_DH
/* MODP DH groups */
PLUGIN_REGISTER(DH, openssl_diffie_hellman_create),