diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-06-22 11:28:50 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-06-22 11:55:33 +0200 |
commit | 5a367e99c3113f59315d750009b38fcde5fde986 (patch) | |
tree | 96fafedb50e8461227325449f42cc850edfc6be4 /src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c | |
parent | 5d31217232ff1cc9237df1d47796f7866072f6be (diff) | |
download | strongswan-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.c | 6 |
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 */ + |