Skip to content
Snippets Groups Projects
Verified Commit 4c2fddeb authored by Bernard Spil's avatar Bernard Spil Committed by sunpoet
Browse files

lang/python37: Fix build with LibreSSL 3.5.*

PR:		264000
parent abdcd078
No related branches found
No related tags found
No related merge requests found
Fix build with LibreSSL 3.5.*
--- Modules/_hashopenssl.c.orig 2022-03-16 13:27:21 UTC
+++ Modules/_hashopenssl.c
@@ -42,7 +42,7 @@ module _hashlib
#define HASH_OBJ_CONSTRUCTOR 0
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment