From cf19aae744ab526ede769274c3bef04a47c42753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Wed, 24 Aug 2022 22:09:53 +0200 Subject: patches/python2-2.7.18.local.patch: libressl support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ørjan Malde --- patches/python2-2.7.18.local.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 patches/python2-2.7.18.local.patch (limited to 'patches/python2-2.7.18.local.patch') diff --git a/patches/python2-2.7.18.local.patch b/patches/python2-2.7.18.local.patch new file mode 100644 index 00000000..e13aa68a --- /dev/null +++ b/patches/python2-2.7.18.local.patch @@ -0,0 +1,12 @@ +diff -ru Python-2.7.18.orig/Modules/_hashopenssl.c Python-2.7.18/Modules/_hashopenssl.c +--- Python-2.7.18.orig/Modules/_hashopenssl.c 2020-04-19 23:13:39.000000000 +0200 ++++ Python-2.7.18/Modules/_hashopenssl.c 2022-02-24 22:29:09.497683912 +0100 +@@ -56,7 +56,7 @@ + #define _OPENSSL_SUPPORTS_SHA2 + #endif + +-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) ++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) + /* OpenSSL < 1.1.0 */ + #define EVP_MD_CTX_new EVP_MD_CTX_create + #define EVP_MD_CTX_free EVP_MD_CTX_destroy -- cgit v1.2.3