bpo-38684: haslib: fix build when Blake2 not enabled in OpenSSL (#17043)

This commit is contained in:
Alexandru Ardelean 2019-11-04 16:55:56 +02:00 committed by Christian Heimes
parent 1cdadf414b
commit 6552563b3d
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix _hashlib build when Blake2 is disabled, but OpenSSL supports it.

View File

@ -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