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-09-29 19:13:29 +0200
commitdf1537544dbcb30455263a6e041e93a8be1b715e (patch)
tree85fcab28b2e624f9991fb8f503073d94d9af79eb
parentSkip RDS socket tests that hang frequently (diff)
downloadcpython-df1537544dbcb30455263a6e041e93a8be1b715e.tar.gz
cpython-df1537544dbcb30455263a6e041e93a8be1b715e.tar.bz2
cpython-df1537544dbcb30455263a6e041e93a8be1b715e.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 6c63301b2a7..fa61baca99d 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -67,6 +67,10 @@
# error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL"
#endif
+#ifndef OPENSSL_NO_SSL3
+# define OPENSSL_NO_SSL3 1
+#endif
+
struct py_ssl_error_code {