diff options
author | Tobias Brunner <tobias@strongswan.org> | 2008-06-25 12:39:32 +0000 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2008-06-25 12:39:32 +0000 |
commit | 1b7d2e31a6218d919ab4063f922c582aace5b12a (patch) | |
tree | 5ad1ed016128897ac97a978cb1e5ef9013afdc83 /src | |
parent | 7e8af026269e81d19e12f3e717ecf5c4baa6f8cf (diff) | |
download | strongswan-1b7d2e31a6218d919ab4063f922c582aace5b12a.tar.bz2 strongswan-1b7d2e31a6218d919ab4063f922c582aace5b12a.tar.xz |
enabling support for hardware accelerators in OpenSSL
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_plugin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_plugin.c b/src/libstrongswan/plugins/openssl/openssl_plugin.c index eaedcc466..a45e46a80 100644 --- a/src/libstrongswan/plugins/openssl/openssl_plugin.c +++ b/src/libstrongswan/plugins/openssl/openssl_plugin.c @@ -16,6 +16,7 @@ */ #include <openssl/evp.h> +#include <openssl/engine.h> #include "openssl_plugin.h" @@ -64,6 +65,7 @@ static void destroy(private_openssl_plugin_t *this) lib->creds->remove_builder(lib->creds, (builder_constructor_t)openssl_ec_public_key_builder); + ENGINE_cleanup(); EVP_cleanup(); free(this); @@ -80,6 +82,10 @@ plugin_t *plugin_create() OpenSSL_add_all_algorithms(); + /* activate support for hardware accelerators */ + ENGINE_load_builtin_engines(); + ENGINE_register_all_complete(); + /* crypter */ lib->crypto->add_crypter(lib->crypto, ENCR_DES, (crypter_constructor_t)openssl_crypter_create); |