]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40479: Fix hashlib issue with OpenSSL 3.0.0 (GH-20107)
authorChristian Heimes <christian@python.org>
Fri, 15 May 2020 16:28:05 +0000 (18:28 +0200)
committerGitHub <noreply@github.com>
Fri, 15 May 2020 16:28:05 +0000 (09:28 -0700)
commit16d4e6f6f559b4fd21c9d29fea303489f658674f
treeebd70940b0147524ed822bf40515e0312f3c6872
parent6e57237faf0da8904e0130a11350cae3c5062b82
bpo-40479: Fix hashlib issue with OpenSSL 3.0.0 (GH-20107)

OpenSSL 3.0.0-alpha2 was released today. The FIPS_mode() function has
been deprecated and removed. It no longer makes sense with the new
provider and context system in OpenSSL 3.0.0.

EVP_default_properties_is_fips_enabled() is good enough for our needs in
unit tests. It's an internal API, too.

Signed-off-by: Christian Heimes <christian@python.org>
Misc/NEWS.d/next/Library/2020-05-15-17-38-21.bpo-40479.yamSCh.rst [new file with mode: 0644]
Modules/_hashopenssl.c
Modules/clinic/_hashopenssl.c.h