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

gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() by sethmlarson · Pull Request #158503 · python/cpython · GitHub

Repository navigation

gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() - #158503

Merged
hugovk merged 2 commits into
python:mainfrom
sethmlarson:wrap-bio-parameters
Sep 30, 2026
Merged

hugovk merged 2 commits into
python:mainfrom
sethmlarson:wrap-bio-parameters

Conversation

sethmlarson commented Sep 30, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

…socket()

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>

read-the-docs-community Bot commented Sep 30, 2026 •
edited
Loading

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34854436 | 📁 Comparing 490f9df against main (069c74a)

  🔍 Preview build  

4 files changed
± library/asyncio-eventloop.html
± library/asyncio-stream.html
± library/ssl.html
± whatsnew/changelog.html

hugovk enabled auto-merge (squash) September 30, 2026 14:32
hugovk merged commit 1697ea3 into python:main Sep 30, 2026
97 of 99 checks passed

Copy link
Copy Markdown

Thanks @sethmlarson for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11, 3.12, 3.13, 3.14, 3.15.
🐍🍒⛏🤖

Copy link
Copy Markdown

Sorry, @sethmlarson and @hugovk, I could not cleanly backport this to 3.15 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 1697ea386c707142555d98a1263176bbbc014a96 3.15

Copy link
Copy Markdown

Sorry, @sethmlarson and @hugovk, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 1697ea386c707142555d98a1263176bbbc014a96 3.12

bedevere-app Bot commented Sep 30, 2026

Copy link
Copy Markdown

GH-158509 is a backport of this pull request to the 3.14 branch.

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Sep 30, 2026

Copy link
Copy Markdown

Sorry, @sethmlarson and @hugovk, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 1697ea386c707142555d98a1263176bbbc014a96 3.11

bedevere-app Bot commented Sep 30, 2026

Copy link
Copy Markdown

GH-158510 is a backport of this pull request to the 3.13 branch.

Copy link
Copy Markdown

Sorry, @sethmlarson and @hugovk, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 1697ea386c707142555d98a1263176bbbc014a96 3.10

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Sep 30, 2026

bedevere-app Bot commented Sep 30, 2026

Copy link
Copy Markdown

GH-158511 is a backport of this pull request to the 3.15 branch.

bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Sep 30, 2026

bedevere-app Bot commented Sep 30, 2026

Copy link
Copy Markdown

GH-158513 is a backport of this pull request to the 3.12 branch.

bedevere-app Bot removed the needs backport to 3.12 only security fixes label Sep 30, 2026

bedevere-app Bot commented Sep 30, 2026

Copy link
Copy Markdown

GH-158516 is a backport of this pull request to the 3.11 branch.

bedevere-app Bot removed the needs backport to 3.11 only security fixes label Sep 30, 2026
sethmlarson deleted the wrap-bio-parameters branch September 30, 2026 15:57

bedevere-app Bot commented Sep 30, 2026

Copy link
Copy Markdown

GH-158518 is a backport of this pull request to the 3.10 branch.

hugovk added a commit that referenced this pull request Sep 30, 2026
…_socket() (GH-158503) (#158511)

Co-authored-by: Seth Larson <seth@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
hugovk added a commit that referenced this pull request Sep 30, 2026
…_socket() (GH-158503) (#158509)

Co-authored-by: Seth Larson <seth@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
hugovk added a commit that referenced this pull request Sep 30, 2026
…_socket() (GH-158503) (#158510)

Co-authored-by: Seth Larson <seth@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Yhg1s added a commit that referenced this pull request Sep 30, 2026
…_socket() (GH-158503) (#158513)

* [3.12] gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() (GH-158503)
(cherry picked from commit 1697ea3)

* Raise a DeprecationWarning instead of ValueError

Co-authored-by: Seth Larson <seth@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: T. Wouters <thomas@python.org>

bedevere-app Bot commented Sep 30, 2026

Copy link
Copy Markdown

GH-158532 is a backport of this pull request to the 3.11 branch.

bedevere-app Bot commented Sep 30, 2026

Copy link
Copy Markdown

GH-158533 is a backport of this pull request to the 3.10 branch.

pablogsal pushed a commit that referenced this pull request Oct 1, 2026
…_socket() (GH-158503) (#158532)

[3.11] gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() (GH-158503) (GH-158513)

* [3.12] gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() (GH-158503)
(cherry picked from commit 1697ea3)

* Raise a DeprecationWarning instead of ValueError
(cherry picked from commit 869069d)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Seth Larson <seth@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
pablogsal added a commit that referenced this pull request Oct 1, 2026
…_socket() (GH-158503) (#158533)

* [3.10] gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() (GH-158503) (GH-158513)

* [3.12] gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() (GH-158503)
(cherry picked from commit 1697ea3)

* Raise a DeprecationWarning instead of ValueError
(cherry picked from commit 869069d)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Seth Larson <seth@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: T. Wouters <thomas@python.org>

* gh-156793: Start the SSL handshake in the 3.10 hostname validation tests

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Seth Larson <seth@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
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

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL