Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
miss-islington merged 1 commit into
python:3.8python/cpython:3.8from
miss-islington:backport-77cde50-3.8miss-islington/cpython:backport-77cde50-3.8Copy head branch name to clipboard
Mar 21, 2021
Merged

[3.8] bpo-43577: Fix deadlock with SSLContext._msg_callback and sni_callback (GH-24957)#24959
miss-islington merged 1 commit into
python:3.8python/cpython:3.8from
miss-islington:backport-77cde50-3.8miss-islington/cpython:backport-77cde50-3.8Copy head branch name to clipboard

Conversation

@miss-islington

@miss-islington miss-islington commented Mar 21, 2021

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>
@miss-islington

Copy link
Copy Markdown
Contributor Author

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

@miss-islington

Copy link
Copy Markdown
Contributor Author

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

@miss-islington miss-islington merged commit 93b0da7 into python:3.8 Mar 21, 2021
@miss-islington miss-islington deleted the backport-77cde50-3.8 branch March 21, 2021 15:32
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.