aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_ap_eap.py
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-02-20 08:06:02 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-20 08:06:02 (GMT)
commitd7ef6e637142828336b0c9c07b4969774e602ede (patch)
treef011c8a376b6120ecd2acc6e1b0c9518a9af4215 /tests/hwsim/test_ap_eap.py
parent4b16c15bbc8b20a85bb3d6f45bba5621a047618e (diff)
downloadhostap-d7ef6e637142828336b0c9c07b4969774e602ede.zip
hostap-d7ef6e637142828336b0c9c07b4969774e602ede.tar.gz
hostap-d7ef6e637142828336b0c9c07b4969774e602ede.tar.bz2
tests: Verify fast_max_pac_list_len=0 special case
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests/hwsim/test_ap_eap.py')
-rw-r--r--tests/hwsim/test_ap_eap.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py
index 040be5d..59c4ba1 100644
--- a/tests/hwsim/test_ap_eap.py
+++ b/tests/hwsim/test_ap_eap.py
@@ -2961,6 +2961,15 @@ def test_ap_wpa2_eap_fast_binary_pac(dev, apdev):
if res['tls_session_reused'] != '1':
raise Exception("EAP-FAST could not use PAC session ticket")
+ # Verify fast_max_pac_list_len=0 special case
+ dev[0].request("REMOVE_NETWORK all")
+ dev[0].wait_disconnected()
+ eap_connect(dev[0], apdev[0], "FAST", "user",
+ anonymous_identity="FAST", password="password",
+ ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2",
+ phase1="fast_provisioning=1 fast_max_pac_list_len=0 fast_pac_format=binary",
+ pac_file="blob://fast_pac_bin")
+
def test_ap_wpa2_eap_fast_missing_pac_config(dev, apdev):
"""WPA2-Enterprise connection using EAP-FAST and missing PAC config"""
check_eap_capa(dev[0], "FAST")