Skip to content

Commit b4ce6fa

Browse files
committed
less diff
1 parent 82d75a3 commit b4ce6fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/_hashopenssl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,8 +1187,8 @@ static PyType_Spec HASHXOFobject_type_spec = {
11871187
#endif
11881188

11891189
static PyObject *
1190-
_hashlib_HASH(_hashlibstate *state,
1191-
const char *digestname, PyObject *data_obj, int usedforsecurity)
1190+
_hashlib_HASH(_hashlibstate *state, const char *digestname, PyObject *data_obj,
1191+
int usedforsecurity)
11921192
{
11931193
Py_buffer view = { 0 };
11941194
PY_EVP_MD *digest = NULL;
@@ -1211,7 +1211,7 @@ _hashlib_HASH(_hashlibstate *state,
12111211
goto exit;
12121212
}
12131213

1214-
#if !defined(Py_HAS_OPENSSL3_SUPPORT) && defined(EVP_MD_CTX_FLAG_NON_FIPS_ALLOW)
1214+
#if defined(EVP_MD_CTX_FLAG_NON_FIPS_ALLOW) && OPENSSL_VERSION_NUMBER < 0x30000000L
12151215
// In OpenSSL 1.1.1 the non FIPS allowed flag is context specific while
12161216
// in 3.0.0 it is a different EVP_MD provider.
12171217
if (!usedforsecurity) {

0 commit comments

Comments
 (0)