diff options
author | Pablo Galindo <pablogsal@gmail.com> | 2022-01-14 21:20:56 (GMT) |
---|---|---|
committer | Pablo Galindo <pablogsal@gmail.com> | 2022-01-14 21:20:56 (GMT) |
commit | 2402f1e1f80499a870a86d848e5228d527d9be1d (patch) | |
tree | 3c9a8c5f87659b1610c880a0cbb93872f6f7b856 /Modules/_hashopenssl.c | |
parent | 01d4fe09763a6e55e38d338bf45e8c35e32a3581 (diff) | |
parent | c5640ef87511c960e339af37b486678788be910a (diff) | |
download | cpython-2402f1e1f80499a870a86d848e5228d527d9be1d.zip cpython-2402f1e1f80499a870a86d848e5228d527d9be1d.tar.gz cpython-2402f1e1f80499a870a86d848e5228d527d9be1d.tar.bz2 |
Merge remote-tracking branch 'upstream/main'
Diffstat (limited to 'Modules/_hashopenssl.c')
-rw-r--r-- | Modules/_hashopenssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index eeea61a..fb155b2 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -883,7 +883,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) { |