lang/python39: Fix build with LibreSSL 3.5.*
PR: 264000
This commit is contained in:
parent
45b8965983
commit
19051b3d99
1 changed files with 13 additions and 0 deletions
13
lang/python39/files/patch-libressl
Normal file
13
lang/python39/files/patch-libressl
Normal file
|
@ -0,0 +1,13 @@
|
|||
Fix build with LibreSSL 3.5.*
|
||||
|
||||
--- Modules/_hashopenssl.c.orig 2022-05-17 11:12:56 UTC
|
||||
+++ Modules/_hashopenssl.c
|
||||
@@ -43,7 +43,7 @@
|
||||
# error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL"
|
||||
#endif
|
||||
|
||||
-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
|
||||
/* OpenSSL < 1.1.0 */
|
||||
#define EVP_MD_CTX_new EVP_MD_CTX_create
|
||||
#define EVP_MD_CTX_free EVP_MD_CTX_destroy
|
Loading…
Reference in a new issue