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>2024-09-07 08:33:46 +0200
commit1c7c3c731eab68954a8f3df95c12e657cb055f73 (patch)
tree67af85ba0dac7b6fb27b9b3f7cc3fc949abcc336
parentSkip RDS socket tests that hang frequently (diff)
downloadcpython-1c7c3c731eab68954a8f3df95c12e657cb055f73.tar.gz
cpython-1c7c3c731eab68954a8f3df95c12e657cb055f73.tar.bz2
cpython-1c7c3c731eab68954a8f3df95c12e657cb055f73.zip
ssl: Hard-disable SSLv3 to avoid automagic deps
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 5e0be34d6f3..856e9e13433 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -76,6 +76,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;