summaryrefslogtreecommitdiff
path: root/src/wireless-security
diff options
context:
space:
mode:
authorAndrew Zaborowski <andrew.zaborowski@intel.com>2018-09-03 06:25:39 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-11-26 15:05:52 +0100
commit89331ca0f8632b4ccad918db36ff949eb09369e0 (patch)
tree7aab4ceffc34fe90863b660ce5b065f18a994036 /src/wireless-security
parent755cc5647f4ee1bb90db6fa884ff1e7105c2d321 (diff)
downloadnetwork-manager-applet-89331ca0f8632b4ccad918db36ff949eb09369e0.tar.gz
all: pass 'hints' from secret agent to ws_wpa_eap_new
The secret agent requests contain two parameters that aren't currently used when handling Wifi network connections: the setting name and hints. Those parameters turned out useful with 802.1X / EAP authentication with NM's IWD backend where it passes a specific 802_1x setting key name that is being requested in the 'hints' array, one of: identity, password or private_key_password. nmcli already gained support for handling such agent requests in 1a6e53808db8bb8e75317fd5feacd74a9a98860f (which was obviously much easier) so this is an attempt to let the src/wireless-security/* classes in nm-applet also handle these requests as intended. A new libnma function nma_wifi_dialog_new_for_secrets is added to receive the values from setting name and hints without changing existing API.
Diffstat (limited to 'src/wireless-security')
-rw-r--r--src/wireless-security/ws-wpa-eap.c3
-rw-r--r--src/wireless-security/ws-wpa-eap.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/wireless-security/ws-wpa-eap.c b/src/wireless-security/ws-wpa-eap.c
index 2479a3ee..c58dd7f5 100644
--- a/src/wireless-security/ws-wpa-eap.c
+++ b/src/wireless-security/ws-wpa-eap.c
@@ -99,7 +99,8 @@ update_secrets (WirelessSecurity *parent, NMConnection *connection)
WirelessSecurityWPAEAP *
ws_wpa_eap_new (NMConnection *connection,
gboolean is_editor,
- gboolean secrets_only)
+ gboolean secrets_only,
+ const char *const*secrets_hints)
{
WirelessSecurity *parent;
GtkWidget *widget;
diff --git a/src/wireless-security/ws-wpa-eap.h b/src/wireless-security/ws-wpa-eap.h
index 0ebff700..283c4fa7 100644
--- a/src/wireless-security/ws-wpa-eap.h
+++ b/src/wireless-security/ws-wpa-eap.h
@@ -27,6 +27,7 @@ typedef struct _WirelessSecurityWPAEAP WirelessSecurityWPAEAP;
WirelessSecurityWPAEAP * ws_wpa_eap_new (NMConnection *connection,
gboolean is_editor,
- gboolean secrets_only);
+ gboolean secrets_only,
+ const char *const*secrets_hints);
#endif /* WS_WPA_EAP_H */