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:27:21 +0200
commit55e52d449a7681d6b5acd30e74fc933c65a0ef7c (patch)
tree1ae63a269bc879e5ee63ed10edc44b8761aa0f41
parentSkip RDS socket tests that hang frequently (diff)
downloadcpython-55e52d449a7681d6b5acd30e74fc933c65a0ef7c.tar.gz
cpython-55e52d449a7681d6b5acd30e74fc933c65a0ef7c.tar.bz2
cpython-55e52d449a7681d6b5acd30e74fc933c65a0ef7c.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 85fbc162823..90754edcbff 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -69,6 +69,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 {