summaryrefslogtreecommitdiffhomepage
path: root/patches/python2-2.7.18.local.patch
blob: 74bcd7e29c88ee414d577cec2c1c8a6d74c0ac48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -ru Python-2.7.18.orig/Modules/_ssl.c Python-2.7.18/Modules/_ssl.c
--- Python-2.7.18.orig/Modules/_ssl.c   2020-04-19 23:13:39.000000000 +0200
+++ Python-2.7.18/Modules/_ssl.c        2024-03-10 13:58:48.445497909 +0100
@@ -592,7 +592,6 @@
     Py_INCREF(sslctx);

     /* Make sure the SSL error state is initialized */
-    (void) ERR_get_state();
     ERR_clear_error();

     PySSL_BEGIN_ALLOW_THREADS
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