]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-100454: Fix running SSL tests with OpenSSL 3.1+ (GH-100456) (GH-118262)
authorDimitri John Ledkov <19779+xnox@users.noreply.github.com>
Tue, 7 May 2024 10:00:40 +0000 (11:00 +0100)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 10:00:40 +0000 (12:00 +0200)
This fixes Ubuntu pipeline with OpenSSL 3.1+

Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
Misc/NEWS.d/next/Tests/2022-12-23-13-29-55.gh-issue-100454.3no0cW.rst [new file with mode: 0644]
Tools/ssl/multissltests.py

diff --git a/Misc/NEWS.d/next/Tests/2022-12-23-13-29-55.gh-issue-100454.3no0cW.rst b/Misc/NEWS.d/next/Tests/2022-12-23-13-29-55.gh-issue-100454.3no0cW.rst
new file mode 100644 (file)
index 0000000..3d5fdc8
--- /dev/null
@@ -0,0 +1 @@
+Fix SSL tests CI for OpenSSL 3.1+
index 61b87a2d22fd25236ce11ed576dfbe67cdfed222..7b9983fe05206a2f28cbb90ea5fdd96bfdf02618 100755 (executable)
@@ -404,15 +404,15 @@ class BuildOpenSSL(AbstractBuilder):
     depend_target = 'depend'
 
     def _post_install(self):
-        if self.version.startswith("3.0"):
-            self._post_install_300()
+        if self.version.startswith("3."):
+            self._post_install_3xx()
 
     def _build_src(self, config_args=()):
-        if self.version.startswith("3.0"):
+        if self.version.startswith("3."):
             config_args += ("enable-fips",)
         super()._build_src(config_args)
 
-    def _post_install_300(self):
+    def _post_install_3xx(self):
         # create ssl/ subdir with example configs
         # Install FIPS module
         self._subprocess_call(