blob: 40e6af2427a8a5146ecc5bd569f68305c9cad625 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Fix build with LibreSSL 3.5.*
--- Modules/_hashopenssl.c.orig 2022-03-16 12:22:54 UTC
+++ Modules/_hashopenssl.c
@@ -37,7 +37,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
|