diff options
author | Illia Volochii <illia.volochii@gmail.com> | 2022-11-24 02:24:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 02:24:09 (GMT) |
commit | 9dc08361bef67a331d1609c8629314c0ca5a79d5 (patch) | |
tree | 7a70ab90fa9f4e9f2b82b239f2f8f391a292664c /Modules/_ssl.c | |
parent | c69cfcdb116c4907b306e2bd0e263d5ceba48bd5 (diff) | |
download | cpython-9dc08361bef67a331d1609c8629314c0ca5a79d5.zip cpython-9dc08361bef67a331d1609c8629314c0ca5a79d5.tar.gz cpython-9dc08361bef67a331d1609c8629314c0ca5a79d5.tar.bz2 |
gh-96828: Add an `ssl.OP_ENABLE_KTLS` option (GH-96830)
Expose the constant when OpenSSL defines it.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 2826d15..2885774 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -5864,6 +5864,9 @@ sslmodule_init_constants(PyObject *m) PyModule_AddIntConstant(m, "OP_IGNORE_UNEXPECTED_EOF", SSL_OP_IGNORE_UNEXPECTED_EOF); #endif +#ifdef SSL_OP_ENABLE_KTLS + PyModule_AddIntConstant(m, "OP_ENABLE_KTLS", SSL_OP_ENABLE_KTLS); +#endif #ifdef X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT PyModule_AddIntConstant(m, "HOSTFLAG_ALWAYS_CHECK_SUBJECT", |