diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-06-22 11:33:21 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-06-22 11:55:34 +0200 |
commit | 1e3d66f8d3843b330ba0b31f700597113c54b3e0 (patch) | |
tree | ea1dcbe6e5b23dd72438ddcfe1d8e8deec9f91a4 /src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c | |
parent | 5a367e99c3113f59315d750009b38fcde5fde986 (diff) | |
download | strongswan-1e3d66f8d3843b330ba0b31f700597113c54b3e0.tar.bz2 strongswan-1e3d66f8d3843b330ba0b31f700597113c54b3e0.tar.xz |
Fixing compilation of the OpenSSL plugin if ENGINE support is disabled.
That is, enable compilation if OpenSSL was configured with
OPENSSL_NO_ENGINE.
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c')
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c b/src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c index de751fe89..9f1238474 100644 --- a/src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c +++ b/src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c @@ -21,7 +21,9 @@ #include <openssl/evp.h> #include <openssl/rsa.h> +#ifndef OPENSSL_NO_ENGINE #include <openssl/engine.h> +#endif /* OPENSSL_NO_ENGINE */ /** * Public exponent to use for key generation. @@ -447,6 +449,7 @@ openssl_rsa_private_key_t *openssl_rsa_private_key_load(key_type_t type, openssl_rsa_private_key_t *openssl_rsa_private_key_connect(key_type_t type, va_list args) { +#ifndef OPENSSL_NO_ENGINE private_openssl_rsa_private_key_t *this; char *keyid = NULL, *pin = NULL; EVP_PKEY *key; @@ -511,5 +514,8 @@ openssl_rsa_private_key_t *openssl_rsa_private_key_connect(key_type_t type, this->engine = TRUE; return &this->public; +#else /* OPENSSL_NO_ENGINE */ + return NULL; +#endif /* OPENSSL_NO_ENGINE */ } |