From 6bf7a5475421ca1b122d78e0bdfa1e5c023885bf Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 17 May 2018 22:03:25 +0300 Subject: [PATCH] tests: Brainpool curves in ap_wpa2_eap_pwd_groups with OpenSSL 1.1.x The OpenSSL version check should not have been limited to 1.0.2 only. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_eap.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index 55abaa772..5f06e2b05 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -2639,6 +2639,9 @@ def test_ap_wpa2_eap_pwd_groups(dev, apdev): if tls.startswith("OpenSSL") and "build=OpenSSL 1.0.2" in tls and "run=OpenSSL 1.0.2" in tls: logger.info("Add Brainpool EC groups since OpenSSL is new enough") groups += [ 27, 28, 29, 30 ] + if tls.startswith("OpenSSL") and "build=OpenSSL 1.1" in tls and "run=OpenSSL 1.1" in tls: + logger.info("Add Brainpool EC groups since OpenSSL is new enough") + groups += [ 27, 28, 29, 30 ] for i in groups: logger.info("Group %d" % i) params['pwd_group'] = str(i)