diff options
author | Christian Heimes <christian@python.org> | 2018-05-15 20:25:40 (GMT) |
---|---|---|
committer | Ned Deily <nad@python.org> | 2018-05-15 20:25:40 (GMT) |
commit | 67c48016638aac9a15afe6fd6754d53d2bdd6b76 (patch) | |
tree | 0865baa109afe92af0728aa78b5d801c249922dc /Modules/_ssl.c | |
parent | 19177fbd5d6d9b29ccc302d65f9d9417ece082ce (diff) | |
download | cpython-67c48016638aac9a15afe6fd6754d53d2bdd6b76.zip cpython-67c48016638aac9a15afe6fd6754d53d2bdd6b76.tar.gz cpython-67c48016638aac9a15afe6fd6754d53d2bdd6b76.tar.bz2 |
bpo-32257: Add ssl.OP_NO_RENEGOTIATION (GH-5904)
The ssl module now contains OP_NO_RENEGOTIATION constant, available with
OpenSSL 1.1.0h or 1.1.1.
Note, OpenSSL 1.1.0h hasn't been released yet.
Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 7670833..bf379f0 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -5845,6 +5845,10 @@ PyInit__ssl(void) PyModule_AddIntConstant(m, "OP_ENABLE_MIDDLEBOX_COMPAT", SSL_OP_ENABLE_MIDDLEBOX_COMPAT); #endif +#ifdef SSL_OP_NO_RENEGOTIATION + PyModule_AddIntConstant(m, "OP_NO_RENEGOTIATION", + SSL_OP_NO_RENEGOTIATION); +#endif #ifdef X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT PyModule_AddIntConstant(m, "HOSTFLAG_ALWAYS_CHECK_SUBJECT", |