[3.10] gh-100454: Fix running SSL tests with OpenSSL 3.1+ (GH-100456) (GH-118262)

This fixes Ubuntu pipeline with OpenSSL 3.1+

Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
This commit is contained in:
Dimitri John Ledkov 2024-05-07 11:00:40 +01:00 committed by GitHub
parent c62c9e518b
commit 333c7dccd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -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(