Blame patches/python3-3.7.10.local.patch

c397bb
diff -ru Python-3.7.10.orig/Modules/_ssl.c Python-3.7.10/Modules/_ssl.c
c397bb
--- Python-3.7.10.orig/Modules/_ssl.c   2021-02-16 02:29:22.000000000 +0100
c397bb
+++ Python-3.7.10/Modules/_ssl.c        2024-03-10 14:05:44.867860819 +0100
c397bb
@@ -921,7 +921,6 @@
c397bb
     self->err = err;
c397bb
c397bb
     /* Make sure the SSL error state is initialized */
c397bb
-    (void) ERR_get_state();
c397bb
     ERR_clear_error();
c397bb
c397bb
     PySSL_BEGIN_ALLOW_THREADS
733300
diff -ru Python-3.7.10.orig/Modules/_hashopenssl.c Python-3.7.10/Modules/_hashopenssl.c
733300
--- Python-3.7.10.orig/Modules/_hashopenssl.c	2021-02-16 02:29:22.000000000 +0100
733300
+++ Python-3.7.10/Modules/_hashopenssl.c	2022-02-24 22:45:05.056189097 +0100
733300
@@ -42,7 +42,7 @@
733300
 #define HASH_OBJ_CONSTRUCTOR 0
733300
 #endif
733300
 
733300
-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
733300
+#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
733300
 /* OpenSSL < 1.1.0 */
733300
 #define EVP_MD_CTX_new EVP_MD_CTX_create
733300
 #define EVP_MD_CTX_free EVP_MD_CTX_destroy