mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 09:14:03 -05:00
tests: Empty token in wpa_psk_file
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
2fae58fdc1
commit
61929f4b07
@ -375,6 +375,13 @@ def test_ap_wpa2_psk_file_errors(dev, apdev):
|
|||||||
raise Exception("Unexpected ENABLE success")
|
raise Exception("Unexpected ENABLE success")
|
||||||
hapd.request("DISABLE")
|
hapd.request("DISABLE")
|
||||||
|
|
||||||
|
# empty token at the end of the line
|
||||||
|
with open(pskfile, "w") as f:
|
||||||
|
f.write("=\n")
|
||||||
|
if "FAIL" not in hapd.request("ENABLE"):
|
||||||
|
raise Exception("Unexpected ENABLE success")
|
||||||
|
hapd.request("DISABLE")
|
||||||
|
|
||||||
# valid PSK file
|
# valid PSK file
|
||||||
with open(pskfile, "w") as f:
|
with open(pskfile, "w") as f:
|
||||||
f.write("00:11:22:33:44:55 12345678\n")
|
f.write("00:11:22:33:44:55 12345678\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user