From 686eee77d2cc11809cd0d1d76d26dd9f1a111897 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 29 Nov 2015 21:07:39 +0200 Subject: [PATCH] tests: Skip PKCS#12 tests with internal TLS client implementation Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_eap.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index 5c45b3615..a0b497606 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -67,6 +67,11 @@ def check_ocsp_support(dev): #if "BoringSSL" in tls: # raise HwsimSkip("OCSP not supported with this TLS library: " + tls) +def check_pkcs12_support(dev): + tls = dev.request("GET tls_library") + if tls.startswith("internal"): + raise HwsimSkip("PKCS#12 not supported with this TLS library: " + tls) + def read_pem(fname): with open(fname, "r") as f: lines = f.readlines() @@ -1355,6 +1360,7 @@ def test_ap_wpa2_eap_tls_blob(dev, apdev): def test_ap_wpa2_eap_tls_pkcs12(dev, apdev): """WPA2-Enterprise connection using EAP-TLS and PKCS#12""" + check_pkcs12_support(dev[0]) params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap") hostapd.add_ap(apdev[0]['ifname'], params) eap_connect(dev[0], apdev[0], "TLS", "tls user", ca_cert="auth_serv/ca.pem", @@ -1392,6 +1398,7 @@ def test_ap_wpa2_eap_tls_pkcs12(dev, apdev): def test_ap_wpa2_eap_tls_pkcs12_blob(dev, apdev): """WPA2-Enterprise connection using EAP-TLS and PKCS#12 from configuration blob""" + check_pkcs12_support(dev[0]) params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap") hostapd.add_ap(apdev[0]['ifname'], params) cert = read_pem("auth_serv/ca.pem")