Skip to content

Add fips_mode_get to return if fips_mode is currently enabled #1644

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

Closed
wants to merge 1 commit into from

Conversation

cwjenkins
Copy link
Contributor

OpenSSL::OPENSSL_FIPS causes confusion as the doc states it returns a boolean based on if FIPS is 'enabled' which isn't true. It is dependent on whether the openssl installed was built with FOM (fips object module). If it was then it will always returns true (even when fips_mode = false), thus it is more accurate to say FIPS-capable.

Adding OpenSSL.fips_mode to return whether or not fips_mode is currently set. This allows for better handling around fips mode.

@rhenium
Copy link
Member

rhenium commented Jun 9, 2017

Can you open a Pull Request at https://github.com/ruby/openssl instead of here? Thanks!

@rhenium rhenium closed this Jun 9, 2017
@cwjenkins
Copy link
Contributor Author

Thanks @rhenium, done ruby/openssl#125

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