Blame patches/python2-2.7.18.local.patch

a8a83e
diff -ru Python-2.7.18.orig/Modules/_ssl.c Python-2.7.18/Modules/_ssl.c
a8a83e
--- Python-2.7.18.orig/Modules/_ssl.c   2020-04-19 23:13:39.000000000 +0200
a8a83e
+++ Python-2.7.18/Modules/_ssl.c        2024-03-10 13:58:48.445497909 +0100
a8a83e
@@ -592,7 +592,6 @@
a8a83e
     Py_INCREF(sslctx);
a8a83e
a8a83e
     /* Make sure the SSL error state is initialized */
a8a83e
-    (void) ERR_get_state();
a8a83e
     ERR_clear_error();
a8a83e
a8a83e
     PySSL_BEGIN_ALLOW_THREADS
cf19aa
diff -ru Python-2.7.18.orig/Modules/_hashopenssl.c Python-2.7.18/Modules/_hashopenssl.c
cf19aa
--- Python-2.7.18.orig/Modules/_hashopenssl.c	2020-04-19 23:13:39.000000000 +0200
cf19aa
+++ Python-2.7.18/Modules/_hashopenssl.c	2022-02-24 22:29:09.497683912 +0100
cf19aa
@@ -56,7 +56,7 @@
cf19aa
 #define _OPENSSL_SUPPORTS_SHA2
cf19aa
 #endif
cf19aa
 
cf19aa
-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
cf19aa
+#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
cf19aa
 /* OpenSSL < 1.1.0 */
cf19aa
 #define EVP_MD_CTX_new EVP_MD_CTX_create
cf19aa
 #define EVP_MD_CTX_free EVP_MD_CTX_destroy