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

(cherry picked from commit cb7230c7a7)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
This commit is contained in:
Miss Islington (bot) 2021-06-13 03:29:33 -07:00 committed by GitHub
parent 929dd817b3
commit f30f484e96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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))