diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2013-11-08 13:17:10 -0500 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2013-11-08 16:56:44 -0500 |
commit | ae64063c953840f99b1204a222fabf5aa7a37b69 (patch) | |
tree | 869b9e78a15953d1ce59c08d024dbe95f8716d9d /tests/twisted/dbus-account-plugin.c | |
parent | b8617c51c1729e1579f9f066ead1fa80b0fd99a1 (diff) |
Remove all notion of secret parameter
We now depend on SASLAuthentication for handling secret, and MC
does not have gnome-keyring anymore.
Diffstat (limited to 'tests/twisted/dbus-account-plugin.c')
-rw-r--r-- | tests/twisted/dbus-account-plugin.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/twisted/dbus-account-plugin.c b/tests/twisted/dbus-account-plugin.c index d1c0bf14..9d79dc0a 100644 --- a/tests/twisted/dbus-account-plugin.c +++ b/tests/twisted/dbus-account-plugin.c @@ -1006,18 +1006,10 @@ test_dbus_account_plugin_get (const McpAccountStorage *storage, while (g_hash_table_iter_next (&iter, &k, &v)) { gchar *param_foo; - McpParameterFlags flags; param_foo = g_strdup_printf ("param-%s", (const gchar *) k); mcp_account_manager_set_value (am, account_name, param_foo, v); - flags = GPOINTER_TO_UINT (g_hash_table_lookup ( - account->parameter_flags, k)); - - if (flags & MCP_PARAMETER_FLAG_SECRET) - mcp_account_manager_parameter_make_secret (am, account_name, - param_foo); - g_free (param_foo); } @@ -1026,7 +1018,6 @@ test_dbus_account_plugin_get (const McpAccountStorage *storage, while (g_hash_table_iter_next (&iter, &k, &v)) { gchar *param_foo; - guint32 flags; gchar *escaped = mcp_account_manager_escape_variant_for_keyfile (am, v); @@ -1034,13 +1025,6 @@ test_dbus_account_plugin_get (const McpAccountStorage *storage, mcp_account_manager_set_value (am, account_name, param_foo, escaped); g_free (escaped); - flags = GPOINTER_TO_UINT (g_hash_table_lookup (account->parameter_flags, - k)); - - if (flags & MCP_PARAMETER_FLAG_SECRET) - mcp_account_manager_parameter_make_secret (am, account_name, - param_foo); - g_free (param_foo); } @@ -1053,17 +1037,12 @@ test_dbus_account_plugin_get (const McpAccountStorage *storage, { GVariant *v = g_hash_table_lookup (account->parameters, key + 6); const gchar *s = g_hash_table_lookup (account->untyped_parameters, key + 6); - guint32 flags = GPOINTER_TO_UINT ( - g_hash_table_lookup (account->parameter_flags, key + 6)); g_dbus_connection_emit_signal (self->bus, NULL, TEST_DBUS_ACCOUNT_PLUGIN_PATH, TEST_DBUS_ACCOUNT_PLUGIN_IFACE, "GetParameter", g_variant_new_parsed ("(%o, %s)", account->path, key + 6), NULL); - if (flags & MCP_PARAMETER_FLAG_SECRET) - mcp_account_manager_parameter_make_secret (am, account_name, key); - if (v != NULL) { gchar *escaped = mcp_account_manager_escape_variant_for_keyfile (am, |