Skip to content

openssl_version: Adjust regex to match more openssl version strings#247

Open
sboyd-m wants to merge 2 commits into
voxpupuli:masterfrom
sboyd-m:bug/openssl_version
Open

openssl_version: Adjust regex to match more openssl version strings#247
sboyd-m wants to merge 2 commits into
voxpupuli:masterfrom
sboyd-m:bug/openssl_version

Conversation

@sboyd-m

@sboyd-m sboyd-m commented Feb 10, 2025

Copy link
Copy Markdown

Pull Request (PR) description

Several OSes have openssl built with version strings that do not match, meaning the fact generation utterly fails. There are a few gates in the code around openssl version 1 vs. 3, and these gates then fail as well.

This changes the regex to better group the string as well as match the other OSes.

This Pull Request (PR) fixes the following issues

n/a

As an aside, it seems like we could be adding another fact based on FIPS mode, and possibly the library information for v3, but that is best left to another PR.

Also, if anyone could get the rhel 9 version that would be great.

@sboyd-m sboyd-m force-pushed the bug/openssl_version branch from 2193f97 to 99bd40e Compare February 10, 2025 21:22
@sboyd-m

sboyd-m commented Feb 10, 2025

Copy link
Copy Markdown
Author

Here is an interactive version that clarifies the groupings: https://regexr.com/8bvn7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant