From d55dcd933c6b98dc7dbf565a7fd79775c7e67188 Mon Sep 17 00:00:00 2001 From: Henri Bragge Date: Mon, 10 Jan 2011 13:41:40 +0200 Subject: [PATCH] supplicant: Support EAP phase2 authentication methods --- plugins/supplicant.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 4458f83..493ee8b 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -1210,7 +1210,11 @@ static int set_network_peap(struct connman_network *network, connman_info("No client certificate has been provided " "to do the PEAP/TTLS authentication\n"); - phase2_auth = g_strdup_printf("auth=%s", phase2); + if (g_str_has_prefix(phase2, "EAP-") == TRUE) { + phase2_auth = g_strdup_printf("autheap=%s", + phase2 + strlen("EAP-")); + } else + phase2_auth = g_strdup_printf("auth=%s", phase2); connman_dbus_dict_append_basic(dict, "password", DBUS_TYPE_STRING, &passphrase); -- 2.7.4