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

miss-islington webhook-mailer at python.org
Sun Jun 13 06:29:46 EDT 2021


https://github.com/python/cpython/commit/f30f484e9660c6ad5d5a554869593d14d709a7f4
commit: f30f484e9660c6ad5d5a554869593d14d709a7f4
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-06-13T03:29:33-07:00
summary:

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

(cherry picked from commit cb7230c7a7d6d497e54c25e9ba640eec79de10f2)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland at innova.no>

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