mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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>
This commit is contained in:
parent
19177fbd5d
commit
67c4801663
3 changed files with 15 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue