diff options
author | Martin Willi <martin@revosec.ch> | 2010-03-08 12:40:45 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-03-08 13:16:12 +0100 |
commit | 40f130dab3c42c3d2b0ab6221a91f2effa1123ed (patch) | |
tree | 44c89d0b7c6bb71dea2746b7e086f0471c7a198e /src/libstrongswan/plugins/openssl/openssl_plugin.c | |
parent | 33e4ee59eddc40d4f19c428f2eb259a7e8deb282 (diff) | |
download | strongswan-40f130dab3c42c3d2b0ab6221a91f2effa1123ed.tar.bz2 strongswan-40f130dab3c42c3d2b0ab6221a91f2effa1123ed.tar.xz |
Implemented the PRF_KEYED_SHA1 algorithm in the openssl plugin
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_plugin.c')
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_plugin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_plugin.c b/src/libstrongswan/plugins/openssl/openssl_plugin.c index 941b643cf..165f83ccb 100644 --- a/src/libstrongswan/plugins/openssl/openssl_plugin.c +++ b/src/libstrongswan/plugins/openssl/openssl_plugin.c @@ -27,6 +27,7 @@ #include "openssl_util.h" #include "openssl_crypter.h" #include "openssl_hasher.h" +#include "openssl_sha1_prf.h" #include "openssl_diffie_hellman.h" #include "openssl_ec_diffie_hellman.h" #include "openssl_rsa_private_key.h" @@ -170,6 +171,8 @@ static void destroy(private_openssl_plugin_t *this) (crypter_constructor_t)openssl_crypter_create); lib->crypto->remove_hasher(lib->crypto, (hasher_constructor_t)openssl_hasher_create); + lib->crypto->remove_prf(lib->crypto, + (prf_constructor_t)openssl_sha1_prf_create); lib->crypto->remove_dh(lib->crypto, (dh_constructor_t)openssl_diffie_hellman_create); lib->crypto->remove_dh(lib->crypto, @@ -256,6 +259,10 @@ plugin_t *openssl_plugin_create() lib->crypto->add_hasher(lib->crypto, HASH_SHA512, (hasher_constructor_t)openssl_hasher_create); + /* prf */ + lib->crypto->add_prf(lib->crypto, PRF_KEYED_SHA1, + (prf_constructor_t)openssl_sha1_prf_create); + /* (ec) diffie hellman */ lib->crypto->add_dh(lib->crypto, MODP_2048_BIT, (dh_constructor_t)openssl_diffie_hellman_create); |