mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-40479: Fix typo, flag must be set for OpenSSL < 3.0.0 (GH-30584)
(cherry picked from commit 276c234ce0
)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
52937c26ad
commit
537f16adfa
1 changed files with 1 additions and 1 deletions
|
@ -900,7 +900,7 @@ py_evp_fromname(PyObject *module, const char *digestname, PyObject *data_obj,
|
|||
goto exit;
|
||||
}
|
||||
|
||||
#if defined(EVP_MD_CTX_FLAG_NON_FIPS_ALLOW) && OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||
#if defined(EVP_MD_CTX_FLAG_NON_FIPS_ALLOW) && OPENSSL_VERSION_NUMBER < 0x30000000L
|
||||
// In OpenSSL 1.1.1 the non FIPS allowed flag is context specific while
|
||||
// in 3.0.0 it is a different EVP_MD provider.
|
||||
if (!usedforsecurity) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue