aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_plugin.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2008-04-29 09:13:14 +0000
committerTobias Brunner <tobias@strongswan.org>2008-04-29 09:13:14 +0000
commit4eda3aa2239606c4bd4942b3b96bec77d2a5a3d6 (patch)
tree404215c0f949fa5f3cc0531b0043be3d46c7f515 /src/libstrongswan/plugins/openssl/openssl_plugin.c
parent5c7c23cc033136cda07affc13dc28a345eea10f0 (diff)
downloadstrongswan-4eda3aa2239606c4bd4942b3b96bec77d2a5a3d6.tar.bz2
strongswan-4eda3aa2239606c4bd4942b3b96bec77d2a5a3d6.tar.xz
use SHA-1 as preferred hasher in the OpenSSL plugin
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_plugin.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_plugin.c b/src/libstrongswan/plugins/openssl/openssl_plugin.c
index c4395ac7a..8145093a3 100644
--- a/src/libstrongswan/plugins/openssl/openssl_plugin.c
+++ b/src/libstrongswan/plugins/openssl/openssl_plugin.c
@@ -81,12 +81,12 @@ plugin_t *plugin_create()
(crypter_constructor_t)openssl_crypter_create);
/* hasher */
+ lib->crypto->add_hasher(lib->crypto, HASH_SHA1,
+ (hasher_constructor_t)openssl_hasher_create);
lib->crypto->add_hasher(lib->crypto, HASH_MD2,
(hasher_constructor_t)openssl_hasher_create);
lib->crypto->add_hasher(lib->crypto, HASH_MD5,
(hasher_constructor_t)openssl_hasher_create);
- lib->crypto->add_hasher(lib->crypto, HASH_SHA1,
- (hasher_constructor_t)openssl_hasher_create);
lib->crypto->add_hasher(lib->crypto, HASH_SHA256,
(hasher_constructor_t)openssl_hasher_create);
lib->crypto->add_hasher(lib->crypto, HASH_SHA384,