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_public_key.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_public_key.c')
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_ec_public_key.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_ec_public_key.c b/src/libstrongswan/plugins/openssl/openssl_ec_public_key.c index 790a8487d..8895f8218 100644 --- a/src/libstrongswan/plugins/openssl/openssl_ec_public_key.c +++ b/src/libstrongswan/plugins/openssl/openssl_ec_public_key.c @@ -14,6 +14,10 @@ * for more details. */ +#include <openssl/opensslconf.h> + +#ifndef OPENSSL_NO_EC + #include "openssl_ec_public_key.h" #include "openssl_util.h" @@ -358,4 +362,5 @@ openssl_ec_public_key_t *openssl_ec_public_key_load(key_type_t type, } return &this->public; } +#endif /* OPENSSL_NO_EC */ |