summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-01-22 23:17:50 +0100
committerThomas Haller <thaller@redhat.com>2019-02-05 08:34:23 +0100
commit472f89da6b5dbd88ffd0815966dfaeb98dd8e024 (patch)
treed46de9284e706cac8af556b3812a63043d9d4224
parentbd590579dabd1940049822026357f45b4ab4d4af (diff)
downloadNetworkManager-472f89da6b5dbd88ffd0815966dfaeb98dd8e024.tar.gz
wifi,clients/secret-agent: use defines for property names in secret hints
-rw-r--r--clients/common/nm-secret-agent-simple.c2
-rw-r--r--src/devices/wifi/nm-device-iwd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/clients/common/nm-secret-agent-simple.c b/clients/common/nm-secret-agent-simple.c
index 3eee3fe263..f649316fe3 100644
--- a/clients/common/nm-secret-agent-simple.c
+++ b/clients/common/nm-secret-agent-simple.c
@@ -780,7 +780,7 @@ request_secrets_from_ui (RequestData *request)
} else if (nm_connection_is_type (request->connection, NM_SETTING_GSM_SETTING_NAME)) {
NMSettingGsm *s_gsm = nm_connection_get_setting_gsm (request->connection);
- if (g_strv_contains (NM_CAST_STRV_CC (request->hints), "pin")) {
+ if (g_strv_contains (NM_CAST_STRV_CC (request->hints), NM_SETTING_GSM_PIN)) {
title = _("PIN code required");
msg = g_strdup (_("PIN code is needed for the mobile broadband device"));
diff --git a/src/devices/wifi/nm-device-iwd.c b/src/devices/wifi/nm-device-iwd.c
index 88422eb150..5fcf6dff23 100644
--- a/src/devices/wifi/nm-device-iwd.c
+++ b/src/devices/wifi/nm-device-iwd.c
@@ -1894,7 +1894,7 @@ act_stage2_config (NMDevice *device, NMDeviceStateReason *out_failure_reason)
TRUE,
NM_SETTING_WIRELESS_SECURITY_SETTING_NAME,
NM_SECRET_AGENT_GET_SECRETS_FLAG_ALLOW_INTERACTION,
- NM_MAKE_STRV ("psk"),
+ NM_MAKE_STRV (NM_SETTING_WIRELESS_SECURITY_PSK),
act_psk_cb,
self);
nm_device_state_changed (device, NM_DEVICE_STATE_NEED_AUTH, NM_DEVICE_STATE_REASON_NONE);