summaryrefslogtreecommitdiff
path: root/src/nm-activation-request.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-06-27 09:42:47 -0500
committerDan Williams <dcbw@redhat.com>2012-06-27 09:42:47 -0500
commit74e262b3032b0e53df0cd0c64a752ad628042cf1 (patch)
treeeb99fd67a223f0207dfd6d51e3a32f443a84fbbb /src/nm-activation-request.c
parentc3b29cec713fc41168fe6c480b6db150fac5fa6a (diff)
downloadNetworkManager-74e262b3032b0e53df0cd0c64a752ad628042cf1.tar.gz
agents: add a "user-requested" flag to secret agent requests
Allows agents to provide different behavior depending on whether the secrets request was initiated by a user (eg by picking a connection from a UI menu or by 'nmcli con up') or was automatically started by NetworkManager. See https://bugzilla.gnome.org/show_bug.cgi?id=660293
Diffstat (limited to 'src/nm-activation-request.c')
-rw-r--r--src/nm-activation-request.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nm-activation-request.c b/src/nm-activation-request.c
index 0b957fd70e..1a3cb77a69 100644
--- a/src/nm-activation-request.c
+++ b/src/nm-activation-request.c
@@ -130,6 +130,9 @@ nm_act_request_get_secrets (NMActRequest *self,
info->callback = callback;
info->callback_data = callback_data;
+ if (priv->user_requested)
+ flags |= NM_SETTINGS_GET_SECRETS_FLAG_USER_REQUESTED;
+
call_id = nm_settings_connection_get_secrets (NM_SETTINGS_CONNECTION (priv->connection),
priv->user_requested,
priv->user_uid,