From 8b56743ef7346d5743b67776e167d6dd54acfd9b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 10 Mar 2014 00:27:15 +0200 Subject: [PATCH] tests: Displayable message in EAP Request-Identity Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_eap.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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")