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>2022-05-31 16:13:44 +0200
commit497498bfe96fb1bf5be4bb058b8539a82cc8010e (patch)
tree2e56326e268eb934c2ab25fa3b6c253a2047e75d
parentSkip RDS socket tests that hang frequently (diff)
downloadcpython-497498bfe96fb1bf5be4bb058b8539a82cc8010e.tar.gz
cpython-497498bfe96fb1bf5be4bb058b8539a82cc8010e.tar.bz2
cpython-497498bfe96fb1bf5be4bb058b8539a82cc8010e.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 e67ab42050b..95bf538bf94 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -65,6 +65,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 {