Skip to content

Commit

Permalink
fix openssl version check
Browse files Browse the repository at this point in the history
Relax the regular expression used to check the OpenSSL version
to support the versions like the one produced by SUSE 15.

Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
  • Loading branch information
matthew-gerlach committed Jan 16, 2025
1 parent f46c8b0 commit 08f264f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pacsign/pacsign/hsm_managers/openssl/openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from pacsign.logger import log

OPENSSL_VERSION_PATTERN = (r'OpenSSL\s+'
r'(?P<version>\d+(?:\.\d+)*(?:[a-z]+)?)\s+'
r'(?P<version>\d+(?:\.\d+)*(?:\S+)?)\s+'
r'(?P<om>FIPS)?\s*'
r'(?P<day>\d+)\s+(?P<month>\w+)\s+(?P<year>\d{4})')
OPENSSL_VERSION_RE = re.compile(OPENSSL_VERSION_PATTERN)
Expand Down

0 comments on commit 08f264f

Please sign in to comment.