tests: Fix eap_proto_ttls_errors with CONFIG_TLS=internal
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
12da39b389
commit
f5b7b24912
1 changed files with 7 additions and 2 deletions
|
@ -8947,10 +8947,15 @@ def test_eap_proto_ttls_errors(dev, apdev):
|
||||||
"user", "autheap=MSCHAPV2"),
|
"user", "autheap=MSCHAPV2"),
|
||||||
(1, "eap_msg_alloc;eap_peer_tls_build_ack",
|
(1, "eap_msg_alloc;eap_peer_tls_build_ack",
|
||||||
"user", "autheap=MSCHAPV2"),
|
"user", "autheap=MSCHAPV2"),
|
||||||
(1, "tls_connection_decrypt;eap_peer_tls_decrypt",
|
|
||||||
"user", "autheap=MSCHAPV2"),
|
|
||||||
(1, "eap_peer_tls_phase2_nak;eap_ttls_phase2_request_eap_method",
|
(1, "eap_peer_tls_phase2_nak;eap_ttls_phase2_request_eap_method",
|
||||||
"cert user", "autheap=MSCHAPV2")]
|
"cert user", "autheap=MSCHAPV2")]
|
||||||
|
tls = dev[0].request("GET tls_library")
|
||||||
|
if tls.startswith("internal"):
|
||||||
|
tests += [(1, "tlsv1_client_decrypt;eap_peer_tls_decrypt",
|
||||||
|
"user", "autheap=MSCHAPV2")]
|
||||||
|
else:
|
||||||
|
tests += [(1, "tls_connection_decrypt;eap_peer_tls_decrypt",
|
||||||
|
"user", "autheap=MSCHAPV2")]
|
||||||
for count, func, identity, phase2 in tests:
|
for count, func, identity, phase2 in tests:
|
||||||
with alloc_fail(dev[0], count, func):
|
with alloc_fail(dev[0], count, func):
|
||||||
dev[0].connect("eap-test", key_mgmt="WPA-EAP", scan_freq="2412",
|
dev[0].connect("eap-test", key_mgmt="WPA-EAP", scan_freq="2412",
|
||||||
|
|
Loading…
Reference in a new issue