From: Jouni Malinen Date: Mon, 13 Nov 2017 10:55:34 +0000 (+0200) Subject: tests: DPP protocol testing - Auth Conf replaced by Res X-Git-Tag: hostap_2_7~862 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eae3ee2e3f93d3096c31ff6489372c921195c6d;p=thirdparty%2Fhostap.git tests: DPP protocol testing - Auth Conf replaced by Res Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 57a8abc17..8b9b814f8 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -2651,6 +2651,15 @@ def test_dpp_proto_auth_conf_i_auth_mismatch(dev, apdev): if "Mismatching Initiator Authenticating Tag" not in ev: raise Excception("Unexpected failure: " + ev) +def test_dpp_proto_auth_conf_replaced_by_resp(dev, apdev): + """DPP protocol testing - Auth Conf replaced by Resp""" + run_dpp_proto_init(dev, 1, 65, mutual=True) + ev = dev[0].wait_event(["DPP-FAIL"], timeout=5) + if ev is None: + raise Exception("DPP failure not seen") + if "Unexpected Authentication Response" not in ev: + raise Excception("Unexpected failure: " + ev) + def run_dpp_proto_conf_req_missing(dev, test, reason): run_dpp_proto_init(dev, 0, test) ev = dev[1].wait_event(["DPP-FAIL"], timeout=5)