peap: add GTC as a recognized phase2 method (bgo #565065) (rh #451027) (lp #284211)

This commit is contained in:
Dan Williams
2009-07-29 14:08:54 -04:00
parent 18788a26d3
commit e5347169f6
2 changed files with 4 additions and 3 deletions

View File

@@ -1204,7 +1204,9 @@ eap_peap_reader (const char *eap_method,
if (!strlen (*iter))
continue;
if (!strcmp (*iter, "MSCHAPV2") || !strcmp (*iter, "MD5")) {
if ( !strcmp (*iter, "MSCHAPV2")
|| !strcmp (*iter, "MD5")
|| !strcmp (*iter, "GTC")) {
if (!eap_simple_reader (*iter, ifcfg, keys, s_8021x, TRUE, error))
goto done;
} else if (!strcmp (*iter, "TLS")) {
@@ -1217,7 +1219,6 @@ eap_peap_reader (const char *eap_method,
goto done;
}
// FIXME: OTP & GTC too
lower = g_ascii_strdown (*iter, -1);
g_object_set (s_8021x, NM_SETTING_802_1X_PHASE2_AUTH, lower, NULL);
g_free (lower);