]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Skip ap_wpa2_eap_psk_oom and ap_ft_oom in FIPS mode
authorJouni Malinen <j@w1.fi>
Sat, 1 Aug 2015 18:37:24 +0000 (21:37 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 2 Aug 2015 13:52:56 +0000 (16:52 +0300)
omac1_aes_128() implementation within crypto_openssl.c is used in this
case and that cannot fail the memory allocation similarly to the
non-FIPS case and aes-omac1.c.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_eap.py
tests/hwsim/test_ap_ft.py

index 8048636c22f0599125a0d6f1ef9bc79660e5045f..eced98e18dcd81ebc427a3af0e5cc89b6f578c1f 100644 (file)
@@ -2142,6 +2142,7 @@ def test_ap_wpa2_eap_psk(dev, apdev):
 
 def test_ap_wpa2_eap_psk_oom(dev, apdev):
     """WPA2-Enterprise connection using EAP-PSK and OOM"""
+    skip_with_fips(dev[0])
     params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
     hostapd.add_ap(apdev[0]['ifname'], params)
     tests = [ (1, "aes_128_ctr_encrypt;aes_128_eax_encrypt"),
index 68a70a49c9d74d40e1a38aa75eb73360d3bb2275..9c5181519f5313ff4b359bc02f6dd6c64ccd1b10 100644 (file)
@@ -13,7 +13,7 @@ logger = logging.getLogger()
 
 import hwsim_utils
 import hostapd
-from utils import HwsimSkip, alloc_fail, fail_test
+from utils import HwsimSkip, alloc_fail, fail_test, skip_with_fips
 from wlantest import Wlantest
 from test_ap_psk import check_mib, find_wpas_process, read_process_memory, verify_not_present, get_key_locations
 
@@ -748,6 +748,7 @@ def test_ap_ft_gcmp_256(dev, apdev):
 
 def test_ap_ft_oom(dev, apdev):
     """WPA2-PSK-FT and OOM"""
+    skip_with_fips(dev[0])
     ssid = "test-ft"
     passphrase="12345678"