]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Ignore openssl_cipher_suite_config_hapd failure (OpenSSL 1.1.1)
authorJouni Malinen <j@w1.fi>
Tue, 1 May 2018 19:02:19 +0000 (22:02 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 1 May 2018 19:13:38 +0000 (22:13 +0300)
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 <j@w1.fi>
tests/hwsim/test_ap_eap.py

index edd33c7d09283eb55daabb4e9b10238f7f4c353c..6842ad36eb28da140c1416675c54e7ccc6155446 100644 (file)
@@ -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"""