summaryrefslogtreecommitdiff
path: root/gsupplicant
diff options
context:
space:
mode:
authorHenri Bragge <henri.bragge@ixonos.com>2011-01-10 13:41:41 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-01-10 18:35:23 +0100
commit13912dbbbbe7cc35d07e9bb1a13aa4e9750dafb2 (patch)
tree5e4e5a8ab7fde282c0bcbb25f1e97db586298839 /gsupplicant
parentd55dcd933c6b98dc7dbf565a7fd79775c7e67188 (diff)
downloadconnman-13912dbbbbe7cc35d07e9bb1a13aa4e9750dafb2.tar.gz
connman-13912dbbbbe7cc35d07e9bb1a13aa4e9750dafb2.tar.bz2
connman-13912dbbbbe7cc35d07e9bb1a13aa4e9750dafb2.zip
gsupplicant: Support EAP phase2 authentication methods
Diffstat (limited to 'gsupplicant')
-rw-r--r--gsupplicant/supplicant.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index cbbe95c0..96f4d838 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -2342,7 +2342,11 @@ static void add_network_security_peap(DBusMessageIter *dict,
}
- phase2_auth = g_strdup_printf("auth=%s", ssid->phase2_auth);
+ if (g_str_has_prefix(ssid->phase2_auth, "EAP-") == TRUE) {
+ phase2_auth = g_strdup_printf("autheap=%s",
+ ssid->phase2_auth + strlen("EAP-"));
+ } else
+ phase2_auth = g_strdup_printf("auth=%s", ssid->phase2_auth);
supplicant_dbus_dict_append_basic(dict, "password",
DBUS_TYPE_STRING,