3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

eap-gtc: Do not check deprecated GTC-Secret

This commit is contained in:
Denis Kenzior 2021-06-01 10:44:23 -05:00
parent 6d9d2f5b89
commit d8b305d799

View File

@ -79,7 +79,6 @@ static int eap_gtc_check_settings(struct l_settings *settings,
const struct eap_secret_info *secret;
char identity_key[72];
char password_key[72];
char password_key_old[72];
L_AUTO_FREE_VAR(char *, identity);
L_AUTO_FREE_VAR(char *, password) = NULL;
@ -105,17 +104,6 @@ static int eap_gtc_check_settings(struct l_settings *settings,
password = l_settings_get_string(settings, "Security", password_key);
if (!password) {
snprintf(password_key_old, sizeof(password_key_old),
"%sGTC-Secret", prefix);
password = l_settings_get_string(settings, "Security",
password_key_old);
if (password) {
explicit_bzero(password, strlen(password));
l_warn("Setting '%s' is deprecated, use '%s' instead",
password_key_old, password_key);
return 0;
}
secret = l_queue_find(secrets, eap_secret_info_match,
password_key);
if (secret)