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-05-12 14:52:40 +0200
commit863be62a296b58ed8593c53aa6f16561986ca745 (patch)
tree21a30ce3b923a27367b8cd93adc9ead56aa88a42
parent[3.9] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline ... (diff)
downloadcpython-gentoo-2.7.18_p10.tar.gz
cpython-gentoo-2.7.18_p10.tar.bz2
cpython-gentoo-2.7.18_p10.zip
ssl: Hard-disable SSLv3 to avoid automagic depsgentoo-2.7.18_p10
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;