From 686cfce934c50f6ebec46a0961d0bb8873465b56 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 3 Nov 2017 21:11:25 +0200 Subject: [PATCH] tests: DPP Protocol testing for invalid Config Resp attribute values Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index a1e4ecf07..bc08fd43f 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -2523,6 +2523,16 @@ def test_dpp_proto_conf_resp_no_wrapped_data(dev, apdev): run_dpp_proto_conf_resp_missing(dev, 57, "Missing or invalid required Wrapped Data attribute") +def test_dpp_proto_conf_resp_invalid_status(dev, apdev): + """DPP protocol testing - invalid Status in Conf Resp""" + run_dpp_proto_conf_resp_missing(dev, 58, + "Configurator rejected configuration") + +def test_dpp_proto_conf_resp_e_nonce_mismatch(dev, apdev): + """DPP protocol testing - E-nonce mismatch in Conf Resp""" + run_dpp_proto_conf_resp_missing(dev, 59, + "Enrollee Nonce mismatch") + def run_dpp_proto_init_pkex(dev, test_dev, test): check_dpp_capab(dev[0]) check_dpp_capab(dev[1])