eap-gtc: Warn if deprecated setting is used

This commit is contained in:
Denis Kenzior 2018-10-25 14:25:28 -05:00
parent fc6cebb259
commit c256dbfbd8
1 changed files with 4 additions and 1 deletions

View File

@ -109,8 +109,11 @@ static int eap_gtc_check_settings(struct l_settings *settings,
"%sGTC-Secret", prefix);
password = l_settings_get_string(settings, "Security",
password_key_old);
if (password)
if (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);