From 0d34c13a72adaf43c2fd1ea7082b6e99ecda51f3 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 1 May 2018 22:02:19 +0300 Subject: [PATCH] tests: Ignore openssl_cipher_suite_config_hapd failure (OpenSSL 1.1.1) It looks like OpenSSL 1.1.1 accepted the openssl_ciphers=FOO test configuration or well, at least does not reject it like previous versions did. For now, ignore this failure. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_eap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index edd33c7d0..6842ad36e 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -5029,7 +5029,10 @@ def test_openssl_cipher_suite_config_hapd(dev, apdev): params['openssl_ciphers'] = "FOO" hapd2 = hostapd.add_ap(apdev[1], params, no_enable=True) if "FAIL" not in hapd2.request("ENABLE"): - raise Exception("Invalid openssl_ciphers value accepted") + if "run=OpenSSL 1.1.1" in tls: + logger.info("Ignore acceptance of an invalid openssl_ciphers value with OpenSSL 1.1.1") + else: + raise Exception("Invalid openssl_ciphers value accepted") def test_wpa2_eap_ttls_pap_key_lifetime_in_memory(dev, apdev, params): """Key lifetime in memory with WPA2-Enterprise using EAP-TTLS/PAP"""