diff options
author | Rahul Jain <rahul.jain@samsung.com> | 2019-02-18 17:54:17 +0530 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2019-02-19 20:28:05 +0100 |
commit | a51d7f688142c1c34642bcf158e83118a22ed5db (patch) | |
tree | fb680aeff98505f523a1d30ed77f0ada004232f1 /gsupplicant | |
parent | 6bffac5bcd5624bc3b7f56e85841bb6d6799a0e0 (diff) | |
download | connman-a51d7f688142c1c34642bcf158e83118a22ed5db.tar.gz |
gsupplicant: Add support for EAP-GTC
Add support for auth type ttls abd phase 2 value GTC incase of
802.1x Security for Peap
Diffstat (limited to 'gsupplicant')
-rw-r--r-- | gsupplicant/supplicant.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index b814b320..da8c52e1 100644 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -4698,7 +4698,9 @@ static void add_network_security_peap(DBusMessageIter *dict, } - if (g_str_has_prefix(ssid->phase2_auth, "EAP-")) { + if(g_strcmp0(ssid->phase2_auth, "GTC") == 0 && g_strcmp0(ssid->eap, "ttls") == 0) + phase2_auth = g_strdup_printf("autheap=%s", ssid->phase2_auth); + else if (g_str_has_prefix(ssid->phase2_auth, "EAP-")) { phase2_auth = g_strdup_printf("autheap=%s", ssid->phase2_auth + strlen("EAP-")); } else |