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

(cherry picked from commit 6552563b3d)

Co-authored-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-11-05 22:10:05 -08:00 committed by GitHub
parent 1eac437e8d
commit 7c20888e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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