recognize eap-ttls method

This commit is contained in:
Andreas Steffen
2010-08-12 23:58:54 +02:00
parent 1327839da8
commit 4412ee86c5
2 changed files with 5 additions and 0 deletions
@@ -30,6 +30,7 @@ eap_type_t eap_type_from_string(char *name)
{"otp", EAP_OTP},
{"gtc", EAP_GTC},
{"tls", EAP_TLS},
{"ttls", EAP_TTLS},
{"sim", EAP_SIM},
{"aka", EAP_AKA},
{"mschapv2", EAP_MSCHAPV2},
+4
View File
@@ -691,6 +691,10 @@ static void load_conn(starter_conn_t *conn, kw_list_t *kw, starter_config_t *cfg
{
conn->eap_type = 13;
}
else if (streq(kw->value, "ttls"))
{
conn->eap_type = 21;
}
else if (streq(kw->value, "mschapv2"))
{
conn->eap_type = 26;