From: Jouni Malinen Date: Sun, 9 Mar 2014 22:27:15 +0000 (+0200) Subject: tests: Displayable message in EAP Request-Identity X-Git-Tag: hostap_2_2~623 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b56743ef7346d5743b67776e167d6dd54acfd9b;p=thirdparty%2Fhostap.git tests: Displayable message in EAP Request-Identity Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index e53dcfdb9..59d34e37f 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -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")