Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sboyd-m
Copy link

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

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
Copy link
Author

sboyd-m commented Feb 10, 2025

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