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:
parent
1eac437e8d
commit
7c20888e71
|
@ -0,0 +1 @@
|
||||||
|
Fix _hashlib build when Blake2 is disabled, but OpenSSL supports it.
|
|
@ -42,7 +42,7 @@
|
||||||
#define PY_OPENSSL_HAS_SHAKE 1
|
#define PY_OPENSSL_HAS_SHAKE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NID_blake2b512
|
#if defined(NID_blake2b512) && !defined(OPENSSL_NO_BLAKE2)
|
||||||
#define PY_OPENSSL_HAS_BLAKE2 1
|
#define PY_OPENSSL_HAS_BLAKE2 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue