From: Henri Bragge Date: Mon, 10 Jan 2011 11:41:40 +0000 (+0200) Subject: supplicant: Support EAP phase2 authentication methods X-Git-Tag: 0.66~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d55dcd933c6b98dc7dbf565a7fd79775c7e67188;p=platform%2Fupstream%2Fconnman.git supplicant: Support EAP phase2 authentication methods --- 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);