use SHA-1 as preferred hasher in the OpenSSL plugin
authorTobias Brunner <tobias@strongswan.org>
Tue, 29 Apr 2008 09:13:14 +0000 (09:13 -0000)
committerTobias Brunner <tobias@strongswan.org>
Tue, 29 Apr 2008 09:13:14 +0000 (09:13 -0000)
src/libstrongswan/plugins/openssl/openssl_plugin.c

index c4395ac..8145093 100644 (file)
@@ -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,