Updated pkcs1 plugin to the new builder API
[strongswan.git] / src / libstrongswan / plugins / pkcs1 / pkcs1_plugin.c
index d0ca856..9d71e13 100644 (file)
@@ -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);