diff options
author | Martin Willi <martin@strongswan.org> | 2009-09-09 16:23:26 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-09-10 16:20:20 +0200 |
commit | 872176d350d16d6c6785f11ec366de3b13efcf74 (patch) | |
tree | 536b661e66f8e626faa89bae46516a80176287f6 /src/libstrongswan/plugins/pkcs1/pkcs1_plugin.c | |
parent | 43224e9527eda958214196693901dc111f29c0e8 (diff) | |
download | strongswan-872176d350d16d6c6785f11ec366de3b13efcf74.tar.bz2 strongswan-872176d350d16d6c6785f11ec366de3b13efcf74.tar.xz |
Updated pkcs1 plugin to the new builder API
Diffstat (limited to 'src/libstrongswan/plugins/pkcs1/pkcs1_plugin.c')
-rw-r--r-- | src/libstrongswan/plugins/pkcs1/pkcs1_plugin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstrongswan/plugins/pkcs1/pkcs1_plugin.c b/src/libstrongswan/plugins/pkcs1/pkcs1_plugin.c index d0ca8564b..9d71e1388 100644 --- a/src/libstrongswan/plugins/pkcs1/pkcs1_plugin.c +++ b/src/libstrongswan/plugins/pkcs1/pkcs1_plugin.c @@ -38,9 +38,9 @@ struct private_pkcs1_plugin_t { static void destroy(private_pkcs1_plugin_t *this) { lib->creds->remove_builder(lib->creds, - (builder_constructor_t)pkcs1_public_key_builder); + (builder_function_t)pkcs1_public_key_load); lib->creds->remove_builder(lib->creds, - (builder_constructor_t)pkcs1_private_key_builder); + (builder_function_t)pkcs1_private_key_load); lib->encoding->remove_encoder(lib->encoding, pkcs1_encoder_encode); @@ -57,11 +57,11 @@ plugin_t *plugin_create() this->public.plugin.destroy = (void(*)(plugin_t*))destroy; lib->creds->add_builder(lib->creds, CRED_PUBLIC_KEY, KEY_ANY, - (builder_constructor_t)pkcs1_public_key_builder); + (builder_function_t)pkcs1_public_key_load); lib->creds->add_builder(lib->creds, CRED_PUBLIC_KEY, KEY_RSA, - (builder_constructor_t)pkcs1_public_key_builder); + (builder_function_t)pkcs1_public_key_load); lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_RSA, - (builder_constructor_t)pkcs1_private_key_builder); + (builder_function_t)pkcs1_private_key_load); lib->encoding->add_encoder(lib->encoding, pkcs1_encoder_encode); |