tests: DPP protocol testing - Auth Conf RX processing failure
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
4ea1915bad
commit
4d38285b3b
1 changed files with 20 additions and 0 deletions
|
@ -4113,6 +4113,26 @@ def test_dpp_proto_auth_resp_r_auth_mismatch(dev, apdev):
|
||||||
if "Peer reported authentication failure" not in ev:
|
if "Peer reported authentication failure" not in ev:
|
||||||
raise Exception("Unexpected failure: " + ev)
|
raise Exception("Unexpected failure: " + ev)
|
||||||
|
|
||||||
|
def test_dpp_proto_auth_resp_r_auth_mismatch_failure(dev, apdev):
|
||||||
|
"""DPP protocol testing - Auth Conf RX processing failure"""
|
||||||
|
with alloc_fail(dev[0], 1, "dpp_auth_conf_rx_failure"):
|
||||||
|
run_dpp_proto_init(dev, 0, 32, mutual=True)
|
||||||
|
ev = dev[0].wait_event(["DPP-FAIL"], timeout=5)
|
||||||
|
if ev is None:
|
||||||
|
raise Exception("DPP failure not seen")
|
||||||
|
if "Authentication failed" not in ev:
|
||||||
|
raise Exception("Unexpected failure: " + ev)
|
||||||
|
|
||||||
|
def test_dpp_proto_auth_resp_r_auth_mismatch_failure2(dev, apdev):
|
||||||
|
"""DPP protocol testing - Auth Conf RX processing failure 2"""
|
||||||
|
with fail_test(dev[0], 1, "dpp_auth_conf_rx_failure"):
|
||||||
|
run_dpp_proto_init(dev, 0, 32, mutual=True)
|
||||||
|
ev = dev[0].wait_event(["DPP-FAIL"], timeout=5)
|
||||||
|
if ev is None:
|
||||||
|
raise Exception("DPP failure not seen")
|
||||||
|
if "AES-SIV decryption failed" not in ev:
|
||||||
|
raise Exception("Unexpected failure: " + ev)
|
||||||
|
|
||||||
def run_dpp_proto_auth_conf_missing(dev, test, reason):
|
def run_dpp_proto_auth_conf_missing(dev, test, reason):
|
||||||
run_dpp_proto_init(dev, 1, test, mutual=True)
|
run_dpp_proto_init(dev, 1, test, mutual=True)
|
||||||
if reason is None:
|
if reason is None:
|
||||||
|
|
Loading…
Reference in a new issue