diff options
author | Martin Willi <martin@strongswan.org> | 2009-06-08 11:45:32 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-06-09 11:27:26 +0200 |
commit | 3240cab9782f78a5c18395763012808d0c532f44 (patch) | |
tree | 10ebeeb5d17938042ca9afc41bc7e06c4b1bd400 /src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c | |
parent | ff8d3ba35567fcdcc82358bd98af197a3763d28c (diff) | |
download | strongswan-3240cab9782f78a5c18395763012808d0c532f44.tar.bz2 strongswan-3240cab9782f78a5c18395763012808d0c532f44.tar.xz |
gcrypt RSA public key implementation
Diffstat (limited to 'src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c')
-rw-r--r-- | src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c b/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c index f1ccf0f65..18e26e769 100644 --- a/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c +++ b/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c @@ -20,6 +20,7 @@ #include "gcrypt_rng.h" #include "gcrypt_dh.h" #include "gcrypt_rsa_private_key.h" +#include "gcrypt_rsa_public_key.h" #include <library.h> #include <debug.h> @@ -107,6 +108,8 @@ static void destroy(private_gcrypt_plugin_t *this) (dh_constructor_t)gcrypt_dh_create); lib->creds->remove_builder(lib->creds, (builder_constructor_t)gcrypt_rsa_private_key_builder); + lib->creds->remove_builder(lib->creds, + (builder_constructor_t)gcrypt_rsa_public_key_builder); free(this); } @@ -200,6 +203,8 @@ plugin_t *plugin_create() /* RSA */ lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_RSA, (builder_constructor_t)gcrypt_rsa_private_key_builder); + lib->creds->add_builder(lib->creds, CRED_PUBLIC_KEY, KEY_RSA, + (builder_constructor_t)gcrypt_rsa_public_key_builder); return &this->public.plugin; } |