]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Tune ap_wpa2_eap_fast_prf_oom for wolfssl
authorJuliusz Sosinowicz <juliusz@wolfssl.com>
Thu, 4 Apr 2024 18:16:15 +0000 (20:16 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Feb 2025 16:43:39 +0000 (18:43 +0200)
The wolfSSL backend only does one malloc in
tls_connection_get_eap_fast_key(). Failing on the second one skips the
only malloc and fails the test.

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
tests/hwsim/test_ap_eap.py

index 6cf427eb1977a1f9675230332d16a7ac448d8f24..8dddbf75b764d56e0a9ea8d3ac595821c7cd2e82 100644 (file)
@@ -4247,9 +4247,12 @@ def test_ap_wpa2_eap_fast_prf_oom(dev, apdev):
     """WPA2-Enterprise connection using EAP-FAST and OOM in PRF"""
     check_eap_capa(dev[0], "FAST")
     tls = dev[0].request("GET tls_library")
-    if tls.startswith("OpenSSL") or tls.startswith("wolfSSL"):
+    if tls.startswith("OpenSSL"):
         func = "tls_connection_get_eap_fast_key"
         count = 2
+    elif tls.startswith("wolfSSL"):
+        func = "tls_connection_get_eap_fast_key"
+        count = 1
     elif tls.startswith("internal"):
         func = "tls_connection_prf"
         count = 1