aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-09-09 16:20:35 +0200
committerMartin Willi <martin@strongswan.org>2009-09-10 16:20:18 +0200
commita94acb58a2d2e35879ec62969838fc78ec175bbd (patch)
tree17aeceeec5efb762241e09865f1fda59d6cf4741 /src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c
parent26135ed9bb0f54e870b9afd2a256e5fbe370c92f (diff)
downloadstrongswan-a94acb58a2d2e35879ec62969838fc78ec175bbd.tar.bz2
strongswan-a94acb58a2d2e35879ec62969838fc78ec175bbd.tar.xz
Updated gcrypt plugin to the new builder API
Diffstat (limited to 'src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c')
-rw-r--r--src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c b/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c
index 0e3ba5e25..083cab536 100644
--- a/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c
+++ b/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c
@@ -107,9 +107,11 @@ static void destroy(private_gcrypt_plugin_t *this)
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);
+ (builder_function_t)gcrypt_rsa_private_key_gen);
lib->creds->remove_builder(lib->creds,
- (builder_constructor_t)gcrypt_rsa_public_key_builder);
+ (builder_function_t)gcrypt_rsa_private_key_load);
+ lib->creds->remove_builder(lib->creds,
+ (builder_function_t)gcrypt_rsa_public_key_load);
free(this);
}
@@ -205,9 +207,11 @@ plugin_t *plugin_create()
/* RSA */
lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_RSA,
- (builder_constructor_t)gcrypt_rsa_private_key_builder);
+ (builder_function_t)gcrypt_rsa_private_key_gen);
+ lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_RSA,
+ (builder_function_t)gcrypt_rsa_private_key_load);
lib->creds->add_builder(lib->creds, CRED_PUBLIC_KEY, KEY_RSA,
- (builder_constructor_t)gcrypt_rsa_public_key_builder);
+ (builder_function_t)gcrypt_rsa_public_key_load);
return &this->public.plugin;
}