wifi,clients/secret-agent: use defines for property names in secret hints

This commit is contained in:
Thomas Haller 2019-01-22 23:17:50 +01:00
parent bd590579da
commit 472f89da6b
2 changed files with 2 additions and 2 deletions

View file

@ -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"));

View file

@ -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);