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-02-07 07:44:13 +0100
commit93ff82b959db8609d74ee32bf3dcedf58e737364 (patch)
treeab20a6b2580a3161fc8684f118d1f41ff3f6f1a2
parentSkip RDS socket tests that hang frequently (diff)
downloadcpython-93ff82b959db8609d74ee32bf3dcedf58e737364.tar.gz
cpython-93ff82b959db8609d74ee32bf3dcedf58e737364.tar.bz2
cpython-93ff82b959db8609d74ee32bf3dcedf58e737364.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 67ce6e97af9..6a3f5c33b90 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 {