Skip to content

Commit 6552563

Browse files
commodotiran
authored andcommitted
bpo-38684: haslib: fix build when Blake2 not enabled in OpenSSL (#17043)
1 parent 1cdadf4 commit 6552563

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix _hashlib build when Blake2 is disabled, but OpenSSL supports it.

Modules/_hashopenssl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#define PY_OPENSSL_HAS_SHAKE 1
4343
#endif
4444

45-
#ifdef NID_blake2b512
45+
#if defined(NID_blake2b512) && !defined(OPENSSL_NO_BLAKE2)
4646
#define PY_OPENSSL_HAS_BLAKE2 1
4747
#endif
4848

0 commit comments

Comments
 (0)