bpo-38684: haslib: fix build when Blake2 not enabled in OpenSSL (#17043)
This commit is contained in:
parent
1cdadf414b
commit
6552563b3d
|
@ -0,0 +1 @@
|
|||
Fix _hashlib build when Blake2 is disabled, but OpenSSL supports it.
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue