Commit e63066fb authored by Alexander Kanavin's avatar Alexander Kanavin

Update the plugin to use the latest plugin API

parent f716d9ca
......@@ -72,7 +72,7 @@ static void anonymous_authorization(gpointer plugin)
//start the authorization
//any further processing happens in signal callbacks
gsignond_plugin_request_initial(plugin, data, "ANONYMOUS");
gsignond_plugin_request_initial(plugin, data, NULL, "ANONYMOUS");
gsignond_dictionary_unref(data);
}
......@@ -86,7 +86,7 @@ static void plain_authorization(gpointer plugin)
//start the authorization
//any further processing happens in signal callbacks
gsignond_plugin_request_initial(plugin, data, "PLAIN");
gsignond_plugin_request_initial(plugin, data, NULL, "PLAIN");
gsignond_dictionary_unref(data);
}
......@@ -102,7 +102,7 @@ static void cram_md5_authorization(gpointer plugin)
//start the authorization
//any further processing happens in signal callbacks
gsignond_plugin_request_initial(plugin, data, "CRAM-MD5");
gsignond_plugin_request_initial(plugin, data, NULL, "CRAM-MD5");
gsignond_dictionary_unref(data);
}
......@@ -120,7 +120,7 @@ static void digest_md5_authorization(gpointer plugin)
//start the authorization
//any further processing happens in signal callbacks
gsignond_plugin_request_initial(plugin, data, "DIGEST-MD5");
gsignond_plugin_request_initial(plugin, data, NULL, "DIGEST-MD5");
gsignond_dictionary_unref(data);
}
......@@ -138,7 +138,7 @@ static void scram_sha1_authorization(gpointer plugin)
//start the authorization
//any further processing happens in signal callbacks
gsignond_plugin_request_initial(plugin, data, "SCRAM-SHA-1");
gsignond_plugin_request_initial(plugin, data, NULL, "SCRAM-SHA-1");
gsignond_dictionary_unref(data);
}
......
......@@ -59,7 +59,7 @@
* The authorization sequence begins with issuing gsignond_plugin_request_initial().
* The @mechanism parameter should be set to one of the mechanisms listed above, and
* the content of @session_data parameter depends on the mechanism and is described
* in detail below.
* in detail below. @identity_method_cache parameter is ignored.
*
* The plugin responds to the request with one of the following signals:
* - #GSignondPlugin::response-final This means the authorization sequence ended
......@@ -377,6 +377,7 @@ static void gsignond_sasl_plugin_request (
static void gsignond_sasl_plugin_request_initial (
GSignondPlugin *plugin, GSignondSessionData *session_data,
GSignondDictionary *identity_method_cache,
const gchar *mechanism)
{
GSignondSaslPlugin *self = GSIGNOND_SASL_PLUGIN (plugin);
......
......@@ -94,7 +94,7 @@ START_TEST (test_saslplugin_request_anonymous)
GSignondSessionData* data = gsignond_dictionary_new();
gsignond_plugin_request_initial(plugin, data, "ANONYMOUS");
gsignond_plugin_request_initial(plugin, data, NULL, "ANONYMOUS");
fail_if(result != NULL);
fail_if(result_final != NULL);
......@@ -106,7 +106,7 @@ START_TEST (test_saslplugin_request_anonymous)
gsignond_dictionary_set_string(data, "AnonymousToken",
"megauser@example.com");
gsignond_plugin_request_initial(plugin, data, "ANONYMOUS");
gsignond_plugin_request_initial(plugin, data, NULL, "ANONYMOUS");
fail_if(result != NULL);
fail_if(result_final == NULL);
fail_if(error != NULL);
......@@ -150,7 +150,7 @@ START_TEST (test_saslplugin_request_plain)
gsignond_session_data_set_username(data, "megauser@example.com");
gsignond_session_data_set_secret(data, "megapassword");
gsignond_plugin_request_initial(plugin, data, "PLAIN");
gsignond_plugin_request_initial(plugin, data, NULL, "PLAIN");
fail_if(result != NULL);
fail_if(result_final == NULL);
......@@ -210,7 +210,7 @@ START_TEST (test_saslplugin_request_digest_md5)
gsignond_session_data_set_username(data, "megauser@example.com");
gsignond_session_data_set_secret(data, "megapassword");
gsignond_plugin_request_initial(plugin, data, "DIGEST-MD5");
gsignond_plugin_request_initial(plugin, data, NULL, "DIGEST-MD5");
fail_if(result == NULL);
fail_if(result_final != NULL);
......@@ -279,7 +279,7 @@ START_TEST (test_saslplugin_request_cram_md5)
gsignond_session_data_set_username(data, "megauser@example.com");
gsignond_session_data_set_secret(data, "megapassword");
gsignond_plugin_request_initial(plugin, data, "CRAM-MD5");
gsignond_plugin_request_initial(plugin, data, NULL, "CRAM-MD5");
fail_if(result != NULL);
fail_if(result_final == NULL);
......@@ -338,7 +338,7 @@ START_TEST (test_saslplugin_request_scram_sha_1)
gsignond_session_data_set_username(data, "megauser@example.com");
gsignond_session_data_set_secret(data, "megapassword");
gsignond_plugin_request_initial(plugin, data, "SCRAM-SHA-1");
gsignond_plugin_request_initial(plugin, data, NULL, "SCRAM-SHA-1");
fail_if(result == NULL);
fail_if(result_final != NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment