]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44389: Remove duplicate SSL_OP_NO_TLSv1_2 flag (GH-26680)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 13 Jun 2021 10:29:33 +0000 (03:29 -0700)
committerGitHub <noreply@github.com>
Sun, 13 Jun 2021 10:29:33 +0000 (03:29 -0700)
(cherry picked from commit cb7230c7a7d6d497e54c25e9ba640eec79de10f2)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Modules/_ssl.c

index 8daf04dd08bbb4bc123fd1baccaa6db2ea71549e..1080fa6cffbd96053b4419beeeeefe46a31e59dd 100644 (file)
@@ -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))