summaryrefslogtreecommitdiff
path: root/dev-lang/python/files/python-3.9.9-r1-libressl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/python/files/python-3.9.9-r1-libressl.patch')
-rw-r--r--dev-lang/python/files/python-3.9.9-r1-libressl.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/dev-lang/python/files/python-3.9.9-r1-libressl.patch b/dev-lang/python/files/python-3.9.9-r1-libressl.patch
deleted file mode 100644
index 997bc0eb62cc..000000000000
--- a/dev-lang/python/files/python-3.9.9-r1-libressl.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-$OpenBSD: patch-Modules__hashopenssl_c,v 1.3 2022/01/21 04:25:12 kmos Exp $
-
-Index: Modules/_hashopenssl.c
---- a/Modules/_hashopenssl.c
-+++ b/Modules/_hashopenssl.c
-@@ -43,7 +43,8 @@
- # error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL"
- #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
-
-$OpenBSD: patch-Modules__ssl_c,v 1.3 2021/11/18 15:45:28 tb Exp $
-
-XXX maybe this can go away now we have auto-init, I'm not sure exactly
-what python's lock protects
-
-Index: Modules/_ssl.c
---- a/Modules/_ssl.c
-+++ b/Modules/_ssl.c
-@@ -213,6 +213,9 @@ extern const SSL_METHOD *TLSv1_2_method(void);
- #if defined(OPENSSL_VERSION_1_1) && !defined(OPENSSL_NO_SSL2)
- #define OPENSSL_NO_SSL2
- #endif
-+#if defined(LIBRESSL_VERSION_NUMBER) && defined(WITH_THREAD)
-+#define HAVE_OPENSSL_CRYPTO_LOCK
-+#endif
-
- #ifndef PY_OPENSSL_1_1_API
- /* OpenSSL 1.1 API shims for OpenSSL < 1.1.0 and LibreSSL < 2.7.0 */