{
gchar *key = NULL;
GVariant *value = NULL;
- key = g_strdup ((const gchar *)sqlite3_column_text (stmt, 0));
+ key = (const gchar *)sqlite3_column_text (stmt, 0);
value = g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
(gconstpointer) sqlite3_column_blob(stmt, 1),
(gsize) sqlite3_column_bytes(stmt, 1), sizeof(guchar));
GSignondPlugin *plugin, GSignondSessionData *session_data,
const gchar *mechanism)
{
+ gint i;
GSignondSsoTestPlugin *self = GSIGNOND_SSOTEST_PLUGIN (plugin);
self->priv->is_canceled = FALSE;
DBG ("response=%p", response);
gsignond_session_data_set_realm (response, "testRealm_after_test");
- int i;
+ gsignond_plugin_status_changed (GSIGNOND_PLUGIN (self),
+ GSIGNOND_PLUGIN_STATE_WAITING,
+ "hello from the test plugin");
for (i = 0; i < 10; i++) {
if (!self->priv->is_canceled) {
- gsignond_plugin_status_changed (GSIGNOND_PLUGIN (self),
- GSIGNOND_PLUGIN_STATE_WAITING,
- "hello from the test plugin");
g_usleep (1000 * 1000 / 100);
g_main_context_iteration (NULL, FALSE);
}
g_hash_table_foreach (data2, (GHFunc)_compare_key_value, &input);
fail_if (input.status != 1);
- g_hash_table_unref(data2);
+ gsignond_dictionary_unref (data2);
g_hash_table_unref(data);
g_hash_table_foreach (data2, (GHFunc)_compare_key_value, &input);
fail_if (input.status != 1);
- g_hash_table_unref(data2);
+ gsignond_dictionary_unref(data2);
g_hash_table_unref(data);
fail_unless (gsignond_secret_storage_remove_data (
input.status = 1;
g_hash_table_foreach (data2, (GHFunc)_compare_key_value, &input);
fail_if (input.status != 1);
- g_hash_table_unref(data2);
+ gsignond_dictionary_unref(data2);
g_hash_table_unref(data);
fail_unless (gsignond_db_credentials_database_remove_data (