diff options
author | Martin Willi <martin@revosec.ch> | 2010-09-02 19:23:37 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-09-02 19:33:08 +0200 |
commit | 08d8b9405baa0cf55ee525a86a2680d823f347d0 (patch) | |
tree | ea1b56e576b8ebdeacf8b9a396e96e3abe318101 /src/libstrongswan/plugins/gmp/gmp_plugin.c | |
parent | 0abd558a65d2352a08355c429835a8618f327310 (diff) | |
download | strongswan-08d8b9405baa0cf55ee525a86a2680d823f347d0.tar.bz2 strongswan-08d8b9405baa0cf55ee525a86a2680d823f347d0.tar.xz |
Added support for MODP_CUSTOM to gmp plugin
Diffstat (limited to 'src/libstrongswan/plugins/gmp/gmp_plugin.c')
-rw-r--r-- | src/libstrongswan/plugins/gmp/gmp_plugin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/gmp/gmp_plugin.c b/src/libstrongswan/plugins/gmp/gmp_plugin.c index 5081844e6..08900df2e 100644 --- a/src/libstrongswan/plugins/gmp/gmp_plugin.c +++ b/src/libstrongswan/plugins/gmp/gmp_plugin.c @@ -38,6 +38,8 @@ METHOD(plugin_t, destroy, void, { lib->crypto->remove_dh(lib->crypto, (dh_constructor_t)gmp_diffie_hellman_create); + lib->crypto->remove_dh(lib->crypto, + (dh_constructor_t)gmp_diffie_hellman_create_custom); lib->creds->remove_builder(lib->creds, (builder_function_t)gmp_rsa_private_key_gen); lib->creds->remove_builder(lib->creds, @@ -85,6 +87,9 @@ plugin_t *gmp_plugin_create() lib->crypto->add_dh(lib->crypto, MODP_768_BIT, (dh_constructor_t)gmp_diffie_hellman_create); + lib->crypto->add_dh(lib->crypto, MODP_CUSTOM, + (dh_constructor_t)gmp_diffie_hellman_create_custom); + lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_RSA, (builder_function_t)gmp_rsa_private_key_gen); lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_RSA, |