[Python-checkins] bpo-44389: Remove duplicate SSL_OP_NO_TLSv1_2 flag (GH-26680)

nanjekyejoannah webhook-mailer at python.org
Sat Jun 12 16:18:02 EDT 2021


https://github.com/python/cpython/commit/cb7230c7a7d6d497e54c25e9ba640eec79de10f2
commit: cb7230c7a7d6d497e54c25e9ba640eec79de10f2
branch: main
author: Erlend Egeberg Aasland <erlend.aasland at innova.no>
committer: nanjekyejoannah <33177550+nanjekyejoannah at users.noreply.github.com>
date: 2021-06-12T17:17:58-03:00
summary:

bpo-44389: Remove duplicate SSL_OP_NO_TLSv1_2 flag (GH-26680)

files:
M Modules/_ssl.c

diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 8daf04dd08bbb..1080fa6cffbd9 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))



More information about the Python-checkins mailing list