tests: Skip ap_wpa2_eap_ttls_dh_params_dsa with internal TLS

DH DSA parameters are not yet supported.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-11-29 21:09:44 +02:00
parent 686eee77d2
commit 404597e630

View file

@ -72,6 +72,11 @@ def check_pkcs12_support(dev):
if tls.startswith("internal"): if tls.startswith("internal"):
raise HwsimSkip("PKCS#12 not supported with this TLS library: " + tls) raise HwsimSkip("PKCS#12 not supported with this TLS library: " + tls)
def check_dh_dsa_support(dev):
tls = dev.request("GET tls_library")
if tls.startswith("internal"):
raise HwsimSkip("DH DSA not supported with this TLS library: " + tls)
def read_pem(fname): def read_pem(fname):
with open(fname, "r") as f: with open(fname, "r") as f:
lines = f.readlines() lines = f.readlines()
@ -3003,6 +3008,7 @@ def test_ap_wpa2_eap_ttls_dh_params(dev, apdev):
def test_ap_wpa2_eap_ttls_dh_params_dsa(dev, apdev): def test_ap_wpa2_eap_ttls_dh_params_dsa(dev, apdev):
"""WPA2-Enterprise connection using EAP-TTLS and setting DH params (DSA)""" """WPA2-Enterprise connection using EAP-TTLS and setting DH params (DSA)"""
check_dh_dsa_support(dev[0])
params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap") params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
hostapd.add_ap(apdev[0]['ifname'], params) hostapd.add_ap(apdev[0]['ifname'], params)
eap_connect(dev[0], apdev[0], "TTLS", "pap user", eap_connect(dev[0], apdev[0], "TTLS", "pap user",