diff options
author | Martin Willi <martin@strongswan.org> | 2009-06-08 11:01:24 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-06-09 11:27:11 +0200 |
commit | ff8d3ba35567fcdcc82358bd98af197a3763d28c (patch) | |
tree | 3c867c7d93b51ff73163085e6b9ffceb0d68f072 /src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c | |
parent | ccd146458638d59805776d6ea48d1fdd8b900594 (diff) | |
download | strongswan-ff8d3ba35567fcdcc82358bd98af197a3763d28c.tar.bz2 strongswan-ff8d3ba35567fcdcc82358bd98af197a3763d28c.tar.xz |
gcrypt RSA private key implementation
Diffstat (limited to 'src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c')
-rw-r--r-- | src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c b/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c index 04eb512d3..f1ccf0f65 100644 --- a/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c +++ b/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c @@ -19,6 +19,7 @@ #include "gcrypt_crypter.h" #include "gcrypt_rng.h" #include "gcrypt_dh.h" +#include "gcrypt_rsa_private_key.h" #include <library.h> #include <debug.h> @@ -104,6 +105,8 @@ static void destroy(private_gcrypt_plugin_t *this) (rng_constructor_t)gcrypt_rng_create); lib->crypto->remove_dh(lib->crypto, (dh_constructor_t)gcrypt_dh_create); + lib->creds->remove_builder(lib->creds, + (builder_constructor_t)gcrypt_rsa_private_key_builder); free(this); } @@ -194,6 +197,10 @@ plugin_t *plugin_create() lib->crypto->add_dh(lib->crypto, MODP_768_BIT, (dh_constructor_t)gcrypt_dh_create); + /* RSA */ + lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_RSA, + (builder_constructor_t)gcrypt_rsa_private_key_builder); + return &this->public.plugin; } |