]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: DPP protocol testing - invalid Status in Auth Resp/Conf
authorJouni Malinen <jouni@qca.qualcomm.com>
Sun, 19 Nov 2017 10:53:50 +0000 (12:53 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 19 Nov 2017 12:13:20 +0000 (14:13 +0200)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_dpp.py

index e32529b42cf1ff2a80ec0cf2ee8f165f10acdba6..d032591dcb7008dac330d0fff3216a0441fd4f98 100644 (file)
@@ -2561,6 +2561,10 @@ def test_dpp_proto_auth_resp_no_status(dev, apdev):
     """DPP protocol testing - no Status in Auth Resp"""
     run_dpp_proto_auth_resp_missing(dev, 16, "Missing or invalid required DPP Status attribute")
 
+def test_dpp_proto_auth_resp_invalid_status(dev, apdev):
+    """DPP protocol testing - invalid Status in Auth Resp"""
+    run_dpp_proto_auth_resp_missing(dev, 74, "Responder reported failure")
+
 def test_dpp_proto_auth_resp_no_r_bootstrap_key(dev, apdev):
     """DPP protocol testing - no R-bootstrap key in Auth Resp"""
     run_dpp_proto_auth_resp_missing(dev, 17, "Missing or invalid required Responder Bootstrapping Key Hash attribute")
@@ -2663,6 +2667,10 @@ def test_dpp_proto_auth_conf_no_status(dev, apdev):
     """DPP protocol testing - no Status in Auth Conf"""
     run_dpp_proto_auth_conf_missing(dev, 25, "Missing or invalid required DPP Status attribute")
 
+def test_dpp_proto_auth_conf_invalid_status(dev, apdev):
+    """DPP protocol testing - invalid Status in Auth Conf"""
+    run_dpp_proto_auth_conf_missing(dev, 75, "Authentication failed")
+
 def test_dpp_proto_auth_conf_no_r_bootstrap_key(dev, apdev):
     """DPP protocol testing - no R-bootstrap key in Auth Conf"""
     run_dpp_proto_auth_conf_missing(dev, 26, "Missing or invalid required Responder Bootstrapping Key Hash attribute")