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

Implement HasFIPSProvider #211

Closed
wants to merge 5 commits into from
Closed

Implement HasFIPSProvider #211

wants to merge 5 commits into from

Conversation

qmuntal
Copy link
Collaborator

@qmuntal qmuntal commented Nov 4, 2024

FIPS() will return false if the fips=yes property is not set in the default properties. This is working as intended, but it is not sufficient to determine if the provider used by default is FIPS-capable. Some distros (e.g. Azure Linux 3, see microsoft/azurelinux#10433) don't set the -fips=yes property when operating in FIPS mode, but instead set a FIPS-capable provider (e.g. SymCrypt) as default provider by setting the provider property in the default properties (e.g. ?provider=symcryptprovider).

This PR adds a new function, HasFIPSProvider(), which checks if the provider used by the default matches the fips=yes query.

openssl.go Outdated Show resolved Hide resolved
@qmuntal qmuntal changed the title Implement FIPSProvider Implement HasFIPSProvider Nov 4, 2024
@qmuntal
Copy link
Collaborator Author

qmuntal commented Nov 8, 2024

I'm retiring this PR for now. It was primary targeted to workaround an issue when using AZL3 + SymCrypt +FIPS, and it may be finally fixed in AZL3.

@qmuntal qmuntal closed this Nov 8, 2024
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.

2 participants