-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-9146: Raise a ValueError if OpenSSL fails to init a hash function #1777
Conversation
This helps people in weird FIPS mode environments where common things like MD5 are not available in the binary as a matter of policy.
@gpshead, thanks for your PR! By analyzing the history of the files in this pull request, we identified @loewis, @tiran and @teoliphant to be potential reviewers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
test_hashlib passes with OpenSSL 0.9.8zh, 1.0.1u, 1.0.2k, 1.1.0e, LibreSSL 2.3.10, 2.4.5, 2,5.3
assigning to tiran for the backports. |
…nc. (pythonGH-1777) This helps people in weird FIPS mode environments where common things like MD5 are not available in the binary as a matter of policy. (cherry picked from commit 07244a8)
looks like we still need a Misc/NEWS.d entry for this |
Thanks @gpshead for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7. |
Sorry, @gpshead, I could not cleanly backport this to |
This helps people in weird FIPS mode environments where common algorithms
such as MD5 or SHA1 are not available in the binary as a matter of policy.
This is https://bugs.python.org/file46765/hashopenssl-fips-exceptions.patch from bpo by @kscguru.