From 38934ed10084373fae277ccffea94633b570002f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 1 Aug 2015 21:37:24 +0300 Subject: [PATCH] tests: Skip ap_wpa2_eap_psk_oom and ap_ft_oom in FIPS mode 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 --- tests/hwsim/test_ap_eap.py | 1 + tests/hwsim/test_ap_ft.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index 8048636c2..eced98e18 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -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"), diff --git a/tests/hwsim/test_ap_ft.py b/tests/hwsim/test_ap_ft.py index 68a70a49c..9c5181519 100644 --- a/tests/hwsim/test_ap_ft.py +++ b/tests/hwsim/test_ap_ft.py @@ -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"