mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
eap-gtc: Fix reading secret from settings
This makes testEAP-PEAP-GTC pass for me by re-adding the check for the
GTC-Secret setting which was replaced with the check for the secrets
list in 3d2285ec7e
.
This commit is contained in:
parent
4ffb97faa1
commit
549021b5dd
@ -100,12 +100,16 @@ static int eap_gtc_check_settings(struct l_settings *settings,
|
||||
return 0;
|
||||
}
|
||||
|
||||
secret = l_queue_find(secrets, eap_secret_info_match, setting2);
|
||||
/* identity found, but secret missing */
|
||||
if (!secret)
|
||||
eap_append_secret(out_missing, EAP_SECRET_REMOTE_PASSWORD,
|
||||
setting2, NULL, identity,
|
||||
EAP_CACHE_NEVER);
|
||||
if (!l_settings_get_value(settings, "Security", setting2)) {
|
||||
secret = l_queue_find(secrets, eap_secret_info_match, setting2);
|
||||
|
||||
if (!secret)
|
||||
eap_append_secret(out_missing,
|
||||
EAP_SECRET_REMOTE_PASSWORD,
|
||||
setting2, NULL, identity,
|
||||
EAP_CACHE_NEVER);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user