From 655e82b1bb679c2e2aac79932f74ccd59c5cae03 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 19 Nov 2017 12:53:50 +0200 Subject: [PATCH] tests: DPP protocol testing - invalid Status in Auth Resp/Conf Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index e32529b42..d032591dc 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -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")