Updated pgp plugin to the new builder API
[strongswan.git] / src / libstrongswan / plugins / pgp / pgp_plugin.c
index ed37e1d..198b58c 100644 (file)
@@ -38,9 +38,9 @@ struct private_pgp_plugin_t {
 static void destroy(private_pgp_plugin_t *this)
 {
        lib->creds->remove_builder(lib->creds,
-                                                       (builder_constructor_t)pgp_public_key_builder);
+                                                       (builder_function_t)pgp_public_key_load);
        lib->creds->remove_builder(lib->creds,
-                                                       (builder_constructor_t)pgp_private_key_builder);
+                                                       (builder_function_t)pgp_private_key_load);
 
        lib->encoding->remove_encoder(lib->encoding, pgp_encoder_encode);
 
@@ -57,13 +57,13 @@ 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)pgp_public_key_builder);
+                                                       (builder_function_t)pgp_public_key_load);
        lib->creds->add_builder(lib->creds, CRED_PUBLIC_KEY, KEY_RSA,
-                                                       (builder_constructor_t)pgp_public_key_builder);
+                                                       (builder_function_t)pgp_public_key_load);
        lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_ANY,
-                                                       (builder_constructor_t)pgp_private_key_builder);
+                                                       (builder_function_t)pgp_private_key_load);
        lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_RSA,
-                                                       (builder_constructor_t)pgp_private_key_builder);
+                                                       (builder_function_t)pgp_private_key_load);
 
        lib->encoding->add_encoder(lib->encoding, pgp_encoder_encode);