settings: don't pass all secrets to agents when requesting secrets

The agent can and will get the secrets it needs itself, since it's providing
secrets anyway.
This commit is contained in:
Dan Williams 2011-02-01 12:19:58 -06:00
parent 570c0eb2df
commit f9147ec369

View file

@ -187,8 +187,7 @@ nm_secret_agent_get_secrets (NMSecretAgent *self,
priv = NM_SECRET_AGENT_GET_PRIVATE (self);
/* FIXME: allow system secrets to be sent to the agent? */
hash = nm_connection_to_hash (connection, NM_SETTING_HASH_FLAG_ALL);
hash = nm_connection_to_hash (connection, NM_SETTING_HASH_FLAG_NO_SECRETS);
r = request_new (self, nm_connection_get_path (connection), setting_name, callback, callback_data);
r->call = dbus_g_proxy_begin_call_with_timeout (priv->proxy,