summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-11-12 06:38:41 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-11-12 06:38:41 (GMT)
commita9dcdabccb1a1f7c76030c0b188ecaf7ab599e57 (patch)
tree2882780efa009d163ef576cc082efa65d050c88e /Modules
parenteda06c8f5e7d7ed5ff79c2c5296253f8f14b7f28 (diff)
downloadcpython-a9dcdabccb1a1f7c76030c0b188ecaf7ab599e57.zip
cpython-a9dcdabccb1a1f7c76030c0b188ecaf7ab599e57.tar.gz
cpython-a9dcdabccb1a1f7c76030c0b188ecaf7ab599e57.tar.bz2
always set OP_NO_SSLv3 by default (closes #25530)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 3e9996e..63a0f9c 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2037,6 +2037,8 @@ context_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
options = SSL_OP_ALL & ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS;
if (proto_version != PY_SSL_VERSION_SSL2)
options |= SSL_OP_NO_SSLv2;
+ if (proto_version != PY_SSL_VERSION_SSL3)
+ options |= SSL_OP_NO_SSLv3;
SSL_CTX_set_options(self->ctx, options);
#ifndef OPENSSL_NO_ECDH