Merge pull request #10604 from yorkie/fix/python3-build
python3: fix build when Blake2 not enabled in OpenSSL
This commit is contained in:
commit
a634589ef6
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
-#ifdef NID_blake2b512
|
-#ifdef NID_blake2b512
|
||||||
+#ifndef OPENSSL_NO_BLAKE2
|
+#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 a new issue