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-03-18 12:42:35 +0100
commit1d70a42ec95f31e30778007feb34e6dd4a5f6220 (patch)
tree3d828b3aa8a4bf467cf955e7df97a64fa1e7cb17
parenttest.support.unlink: ignore EACCES (diff)
downloadcpython-1d70a42ec95f31e30778007feb34e6dd4a5f6220.tar.gz
cpython-1d70a42ec95f31e30778007feb34e6dd4a5f6220.tar.bz2
cpython-1d70a42ec95f31e30778007feb34e6dd4a5f6220.zip
ssl: Hard-disable SSLv3 to avoid automagic depsgentoo-2.7.18_p15
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 98c8a5a4a95..eb19686d010 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -76,6 +76,10 @@
#include "openssl/rand.h"
#include "openssl/dh.h"
+#ifndef OPENSSL_NO_SSL3
+# define OPENSSL_NO_SSL3 1
+#endif
+
/* SSL error object */
static PyObject *PySSLErrorObject;
static PyObject *PySSLZeroReturnErrorObject;