diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-11-12 06:38:41 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-11-12 06:38:41 (GMT) |
commit | 10aaca9941ac6e7658de4586c8e9b28a0e9bd4b3 (patch) | |
tree | 9f2310e7cc17f1a2104dc761a46a91ba811f240c /Modules | |
parent | 59d451d68fb738b7d9c45d72f7d4f64c4c708f09 (diff) | |
download | cpython-10aaca9941ac6e7658de4586c8e9b28a0e9bd4b3.zip cpython-10aaca9941ac6e7658de4586c8e9b28a0e9bd4b3.tar.gz cpython-10aaca9941ac6e7658de4586c8e9b28a0e9bd4b3.tar.bz2 |
always set OP_NO_SSLv3 by default (closes #25530)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ssl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index a327ae2..398a43a 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -2046,6 +2046,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 |