aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-06-22 11:28:50 +0200
committerTobias Brunner <tobias@strongswan.org>2010-06-22 11:55:33 +0200
commit5a367e99c3113f59315d750009b38fcde5fde986 (patch)
tree96fafedb50e8461227325449f42cc850edfc6be4 /src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c
parent5d31217232ff1cc9237df1d47796f7866072f6be (diff)
downloadstrongswan-5a367e99c3113f59315d750009b38fcde5fde986.tar.bz2
strongswan-5a367e99c3113f59315d750009b38fcde5fde986.tar.xz
Fixing compilation of the OpenSSL plugin if Elliptic Curve support is disabled.
That is, enable compilation if OpenSSL was configured with OPENSSL_NO_EC.
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c
index faec411cd..a53e8aea0 100644
--- a/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c
+++ b/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c
@@ -13,6 +13,10 @@
* for more details.
*/
+#include <openssl/opensslconf.h>
+
+#ifndef OPENSSL_NO_EC
+
#include <openssl/ec.h>
#include <openssl/objects.h>
@@ -331,3 +335,5 @@ openssl_ec_diffie_hellman_t *openssl_ec_diffie_hellman_create(diffie_hellman_gro
return &this->public;
}
+#endif /* OPENSSL_NO_EC */
+