aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_plugin.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2008-12-03 10:12:20 +0000
committerTobias Brunner <tobias@strongswan.org>2008-12-03 10:12:20 +0000
commit83c42156a237290f7ebf6d5270491a26e05e1eaa (patch)
tree4db69cd268e12162afda8380bd55cc76c0acc9a6 /src/libstrongswan/plugins/openssl/openssl_plugin.c
parentc3bdc3cd7fcb246f0345a39ae4678982b3259511 (diff)
downloadstrongswan-83c42156a237290f7ebf6d5270491a26e05e1eaa.tar.bz2
strongswan-83c42156a237290f7ebf6d5270491a26e05e1eaa.tar.xz
add support for smartcards in charon by using the ENGINE API provided by OpenSSL, based on patches by Michael Roßberg.
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_plugin.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_plugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_plugin.c b/src/libstrongswan/plugins/openssl/openssl_plugin.c
index 35df1b073..952697b60 100644
--- a/src/libstrongswan/plugins/openssl/openssl_plugin.c
+++ b/src/libstrongswan/plugins/openssl/openssl_plugin.c
@@ -16,6 +16,7 @@
* $Id$
*/
+#include <openssl/conf.h>
#include <openssl/evp.h>
#include <openssl/engine.h>
#include <openssl/crypto.h>
@@ -185,6 +186,7 @@ static void destroy(private_openssl_plugin_t *this)
ENGINE_cleanup();
EVP_cleanup();
+ CONF_modules_free();
threading_cleanup();
@@ -202,6 +204,7 @@ plugin_t *plugin_create()
threading_init();
+ OPENSSL_config(NULL);
OpenSSL_add_all_algorithms();
/* activate support for hardware accelerators */