]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: More complete group list for sae_groups
authorJouni Malinen <jouni@codeaurora.org>
Wed, 6 Mar 2019 11:05:23 +0000 (13:05 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 6 Mar 2019 11:05:23 +0000 (13:05 +0200)
Add group 1 for completeness sake and also and Brainpool groups with
OpenSSL 1.1.*.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_sae.py

index f27042ea10dffd03fa73ecbb1c71b4385f8917d6..45b1f4bced110fae863fdbfc8b23aac0d708e2f8 100644 (file)
@@ -141,9 +141,9 @@ def test_sae_groups(dev, apdev):
     # MODP) and group 21 (521-bit random ECP group) are a bit too slow on some
     # VMs and can result in hitting the mac80211 authentication timeout, so
     # allow them to fail and just report such failures in the debug log.
-    sae_groups = [ 19, 25, 26, 20, 21, 2, 5, 14, 15, 16, 22, 23, 24 ]
+    sae_groups = [ 19, 25, 26, 20, 21, 1, 2, 5, 14, 15, 16, 22, 23, 24 ]
     tls = dev[0].request("GET tls_library")
-    if tls.startswith("OpenSSL") and "build=OpenSSL 1.0.2" in tls and "run=OpenSSL 1.0.2" in tls:
+    if tls.startswith("OpenSSL") and "run=OpenSSL 1." in tls:
         logger.info("Add Brainpool EC groups since OpenSSL is new enough")
         sae_groups += [ 27, 28, 29, 30 ]
     heavy_groups = [ 14, 15, 16 ]