aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-12-28 18:26:57 (GMT)
committerJouni Malinen <j@w1.fi>2017-12-28 20:33:12 (GMT)
commit0039b972afa29dfa00f15143124749b7d4a103e0 (patch)
tree2d2387bd087582deddfd4b63313f39cc26586e6e
parentc36d822418a88b793182a737c7257364ac862efb (diff)
downloadhostap-0039b972afa29dfa00f15143124749b7d4a103e0.zip
hostap-0039b972afa29dfa00f15143124749b7d4a103e0.tar.gz
hostap-0039b972afa29dfa00f15143124749b7d4a103e0.tar.bz2
tests: Speed up suite_b_192_rsa_insufficient_dh in failure case
Check for unexpected connection to avoid timeout on TLS alert event if the implementation does not check DH key size at all. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_suite_b.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/hwsim/test_suite_b.py b/tests/hwsim/test_suite_b.py
index f96a676..46401a3 100644
--- a/tests/hwsim/test_suite_b.py
+++ b/tests/hwsim/test_suite_b.py
@@ -422,11 +422,14 @@ def test_suite_b_192_rsa_insufficient_dh(dev, apdev):
private_key="auth_serv/rsa3072-user.key",
pairwise="GCMP-256", group="GCMP-256", scan_freq="2412",
wait_connect=False)
- ev = dev[0].wait_event(["CTRL-EVENT-EAP-STATUS status='local TLS alert'"],
+ ev = dev[0].wait_event(["CTRL-EVENT-EAP-STATUS status='local TLS alert'",
+ "CTRL-EVENT-CONNECTED"],
timeout=10)
dev[0].request("DISCONNECT")
if ev is None:
raise Exception("DH error not reported")
+ if "CTRL-EVENT-CONNECTED" in ev:
+ raise Exception("Unexpected connection")
if "insufficient security" not in ev and "internal error" not in ev:
raise Exception("Unexpected error reason: " + ev)