There was an error while loading. Please reload this page.
1 parent 52937c2 commit 9eeeee6Copy full SHA for 9eeeee6
1 file changed
Modules/_hashopenssl.c
@@ -900,7 +900,7 @@ py_evp_fromname(PyObject *module, const char *digestname, PyObject *data_obj,
900
goto exit;
901
}
902
903
-#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
904
// In OpenSSL 1.1.1 the non FIPS allowed flag is context specific while
905
// in 3.0.0 it is a different EVP_MD provider.
906
if (!usedforsecurity) {
0 commit comments