]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Displayable message in EAP Request-Identity
authorJouni Malinen <j@w1.fi>
Sun, 9 Mar 2014 22:27:15 +0000 (00:27 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 9 Mar 2014 22:27:15 +0000 (00:27 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_eap.py

index e53dcfdb965226bd81e1f7dc712f76cf58aa1786..59d34e37fb1ed8105dcb37e1f16791c5c9ad1f63 100644 (file)
@@ -1000,3 +1000,11 @@ def test_ap_wpa2_eap_reauth(dev, apdev):
         time.sleep(0.1)
     if state != "COMPLETED":
         raise Exception("Reauthentication did not complete")
+
+def test_ap_wpa2_eap_request_identity_message(dev, apdev):
+    """Optional displayable message in EAP Request-Identity"""
+    params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
+    params['eap_message'] = 'hello\\0networkid=netw,nasid=foo,portid=0,NAIRealms=example.com'
+    hostapd.add_ap(apdev[0]['ifname'], params)
+    eap_connect(dev[0], apdev[0], "PAX", "pax.user@example.com",
+                password_hex="0123456789abcdef0123456789abcdef")