Skip to content

Commit 9eeeee6

Browse files
tiranmiss-islington
authored andcommitted
bpo-40479: Fix typo, flag must be set for OpenSSL < 3.0.0 (GH-30584)
(cherry picked from commit 276c234) Co-authored-by: Christian Heimes <christian@python.org>
1 parent 52937c2 commit 9eeeee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_hashopenssl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ py_evp_fromname(PyObject *module, const char *digestname, PyObject *data_obj,
900900
goto exit;
901901
}
902902

903-
#if defined(EVP_MD_CTX_FLAG_NON_FIPS_ALLOW) && OPENSSL_VERSION_NUMBER >= 0x30000000L
903+
#if defined(EVP_MD_CTX_FLAG_NON_FIPS_ALLOW) && OPENSSL_VERSION_NUMBER < 0x30000000L
904904
// In OpenSSL 1.1.1 the non FIPS allowed flag is context specific while
905905
// in 3.0.0 it is a different EVP_MD provider.
906906
if (!usedforsecurity) {

0 commit comments

Comments
 (0)