"mschap user" TTLS-MSCHAP "password" [2]
"DOMAIN\mschapv2 user" TTLS-MSCHAPV2 hash:8846f7eaee8fb117ad06bdd830b7586c [2]
"hs20-test" TTLS-MSCHAPV2 "password" [2]
+"utf8-user" TTLS-MSCHAPV2 "secret-åäö-€-password" [2]
+"utf8-user-hash" TTLS-MSCHAPV2 hash:bd5844fad2489992da7fe8c5a01559cf [2]
"user" MSCHAPV2,MD5,GTC "password" [2]
"cert user" TLS [2]
#!/usr/bin/python
+# -*- coding: utf-8 -*-
#
# WPA2-Enterprise tests
# Copyright (c) 2013-2014, Jouni Malinen <j@w1.fi>
ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2",
expect_failure=True)
+def test_ap_wpa2_eap_ttls_mschapv2_utf8(dev, apdev):
+ """WPA2-Enterprise connection using EAP-TTLS/MSCHAPv2 and UTF-8 password"""
+ params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
+ hostapd.add_ap(apdev[0]['ifname'], params)
+ hapd = hostapd.Hostapd(apdev[0]['ifname'])
+ eap_connect(dev[0], apdev[0], "TTLS", "utf8-user-hash",
+ anonymous_identity="ttls", password="secret-åäö-€-password",
+ ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2")
+ eap_connect(dev[1], apdev[0], "TTLS", "utf8-user",
+ anonymous_identity="ttls",
+ password_hex="hash:bd5844fad2489992da7fe8c5a01559cf",
+ ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2")
+
def test_ap_wpa2_eap_ttls_eap_gtc(dev, apdev):
"""WPA2-Enterprise connection using EAP-TTLS/EAP-GTC"""
params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")