summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-06-12 20:17:58 (GMT)
committerGitHub <noreply@github.com>2021-06-12 20:17:58 (GMT)
commitcb7230c7a7d6d497e54c25e9ba640eec79de10f2 (patch)
treeadcb475406e3b9a9dc4c5ef1dcdec6078a43574c /Modules/_ssl.c
parenta342cc5891dbd8a08d40e9444f2e2c9e93258721 (diff)
downloadcpython-cb7230c7a7d6d497e54c25e9ba640eec79de10f2.zip
cpython-cb7230c7a7d6d497e54c25e9ba640eec79de10f2.tar.gz
cpython-cb7230c7a7d6d497e54c25e9ba640eec79de10f2.tar.bz2
bpo-44389: Remove duplicate SSL_OP_NO_TLSv1_2 flag (GH-26680)
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 8daf04d..1080fa6 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -3587,7 +3587,7 @@ set_options(PySSLContext *self, PyObject *arg, void *c)
long new_opts, opts, set, clear;
long opt_no = (
SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1 |
- SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2 | SSL_OP_NO_TLSv1_2
+ SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2
);
if (!PyArg_Parse(arg, "l", &new_opts))