FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.9] bpo-43577: Fix deadlock with SSLContext._msg_callback and sni_callback (GH-24957) by miss-islington · Pull Request #24958 · python/cpython · GitHub

Repository navigation

[3.9] bpo-43577: Fix deadlock with SSLContext._msg_callback and sni_callback (GH-24957) - #24958

Merged
miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-77cde50-3.9
Mar 21, 2021
Merged

miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-77cde50-3.9

Conversation

miss-islington commented Mar 21, 2021 •
edited
Loading

Copy link
Copy Markdown
Contributor

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
(cherry picked from commit 77cde50)

Co-authored-by: Christian Heimes christian@python.org

https://bugs.python.org/issue43577

Automerge-Triggered-By: GH:tiran

pythonGH-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>
(cherry picked from commit 77cde50)

Co-authored-by: Christian Heimes <christian@python.org>

Copy link
Copy Markdown
Contributor Author

@tiran: Status check is done, and it's a success ✅ .

Copy link
Copy Markdown
Contributor Author

@tiran: Status check is done, and it's a success ✅ .

miss-islington merged commit c145c03 into python:3.9 Mar 21, 2021
miss-islington deleted the backport-77cde50-3.9 branch March 21, 2021 15:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL