aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-02-03 10:14:49 +0100
committerMichał Górny <mgorny@gentoo.org>2021-05-12 14:41:59 +0200
commit158aa47b6ccdc7f1f7d6d7c01f10c40e3ace6655 (patch)
treeaa5872b48940f0298612da4b257c03c67641dc0f
parentFix urllib.parse sanitization for older <3.9 code (diff)
downloadcpython-158aa47b6ccdc7f1f7d6d7c01f10c40e3ace6655.tar.gz
cpython-158aa47b6ccdc7f1f7d6d7c01f10c40e3ace6655.tar.bz2
cpython-158aa47b6ccdc7f1f7d6d7c01f10c40e3ace6655.zip
ssl: Hard-disable SSLv3 to avoid automagic depsgentoo-3.8.10_p1
Bug: https://bugs.gentoo.org/767886
-rw-r--r--Modules/_ssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index d6a2fb814ad..bc665db0d5a 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -78,6 +78,10 @@ static PySocketModule_APIObject PySocketModule;
# error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL"
#endif
+#ifndef OPENSSL_NO_SSL3
+# define OPENSSL_NO_SSL3 1
+#endif
+
/* SSL error object */
static PyObject *PySSLErrorObject;
static PyObject *PySSLCertVerificationErrorObject;