diff options
author | Christian Heimes <christian@python.org> | 2021-03-21 15:13:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 15:13:09 (GMT) |
commit | 77cde5042a2f1eae489c11a67540afaf43cd5cdf (patch) | |
tree | e1e273a3a52bf3fb90de8eaab8503cc884db2c13 /Misc | |
parent | 20a5b7e986377bdfd929d7e8c4e3db5847dfdb2d (diff) | |
download | cpython-77cde5042a2f1eae489c11a67540afaf43cd5cdf.zip cpython-77cde5042a2f1eae489c11a67540afaf43cd5cdf.tar.gz cpython-77cde5042a2f1eae489c11a67540afaf43cd5cdf.tar.bz2 |
bpo-43577: Fix deadlock with SSLContext._msg_callback and sni_callback (GH-24957)
OpenSSL copies the internal message callback from SSL_CTX->msg_callback to
SSL->msg_callback. SSL_set_SSL_CTX() does not update SSL->msg_callback
to use the callback value of the new context.
PySSL_set_context() now resets the callback and _PySSL_msg_callback()
resets thread state in error path.
Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-03-21-10-13-17.bpo-43577.m7JnAV.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-03-21-10-13-17.bpo-43577.m7JnAV.rst b/Misc/NEWS.d/next/Library/2021-03-21-10-13-17.bpo-43577.m7JnAV.rst new file mode 100644 index 0000000..a7db48b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-03-21-10-13-17.bpo-43577.m7JnAV.rst @@ -0,0 +1 @@ +Fix deadlock when using :class:`ssl.SSLContext` debug callback with :meth:`ssl.SSLContext.sni_callback`. |