Skip to content

Commit

Permalink
bpo-38684: haslib: fix build when Blake2 not enabled in OpenSSL (#17043)
Browse files Browse the repository at this point in the history
  • Loading branch information
commodo authored and tiran committed Nov 4, 2019
1 parent 1cdadf4 commit 6552563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix _hashlib build when Blake2 is disabled, but OpenSSL supports it.
2 changes: 1 addition & 1 deletion Modules/_hashopenssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#define PY_OPENSSL_HAS_SHAKE 1
#endif

#ifdef NID_blake2b512
#if defined(NID_blake2b512) && !defined(OPENSSL_NO_BLAKE2)
#define PY_OPENSSL_HAS_BLAKE2 1
#endif

Expand Down

0 comments on commit 6552563

Please sign in to comment.