There was an error while loading. Please reload this page.
1 parent 1a4d1c1 commit 276c234Copy full SHA for 276c234
1 file changed
Modules/_hashopenssl.c
@@ -883,7 +883,7 @@ py_evp_fromname(PyObject *module, const char *digestname, PyObject *data_obj,
883
goto exit;
884
}
885
886
-#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
887
// In OpenSSL 1.1.1 the non FIPS allowed flag is context specific while
888
// in 3.0.0 it is a different EVP_MD provider.
889
if (!usedforsecurity) {
0 commit comments