mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-07 04:34:04 -05:00
tests: PIN generation failure
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
765c15d503
commit
3381d324c9
@ -1,5 +1,5 @@
|
|||||||
# WPS tests
|
# WPS tests
|
||||||
# Copyright (c) 2013-2015, Jouni Malinen <j@w1.fi>
|
# Copyright (c) 2013-2017, Jouni Malinen <j@w1.fi>
|
||||||
#
|
#
|
||||||
# This software may be distributed under the terms of the BSD license.
|
# This software may be distributed under the terms of the BSD license.
|
||||||
# See README for more details.
|
# See README for more details.
|
||||||
@ -2027,6 +2027,13 @@ def test_ap_wps_check_pin(dev, apdev):
|
|||||||
if pin != rpin:
|
if pin != rpin:
|
||||||
raise Exception("Random PIN validation failed for " + pin)
|
raise Exception("Random PIN validation failed for " + pin)
|
||||||
|
|
||||||
|
def test_ap_wps_pin_get_failure(dev, apdev):
|
||||||
|
"""PIN generation failure"""
|
||||||
|
with fail_test(dev[0], 1,
|
||||||
|
"os_get_random;wpa_supplicant_ctrl_iface_wps_pin"):
|
||||||
|
if "FAIL" not in dev[0].request("WPS_PIN get"):
|
||||||
|
raise Exception("WPS_PIN did not report failure")
|
||||||
|
|
||||||
def test_ap_wps_wep_config(dev, apdev):
|
def test_ap_wps_wep_config(dev, apdev):
|
||||||
"""WPS 2.0 AP rejecting WEP configuration"""
|
"""WPS 2.0 AP rejecting WEP configuration"""
|
||||||
ssid = "test-wps-config"
|
ssid = "test-wps-config"
|
||||||
|
Loading…
Reference in New Issue
Block a user