Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

gh-89562: Remove hostflags from PySSLContext#28602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gpshead merged 1 commit intopython:mainfromramikg:remove-hostflags-from-pysslcontext-struct
Apr 18, 2025
Merged

gh-89562: Remove hostflags from PySSLContext#28602

gpshead merged 1 commit intopython:mainfromramikg:remove-hostflags-from-pysslcontext-struct
Apr 18, 2025

Conversation

@ramikg
Copy link
Contributor

@ramikgramikg commentedSep 28, 2021
edited by bedevere-appbot
Loading

ThePySSLContext struct inModules/_ssl.c mentions that "OpenSSL has no API to get hostflags from X509_VERIFY_PARAM* struct. We have to maintain our own copy".
Since OpenSSL 1.1.0i added the functionX509_VERIFY_PARAM_get_hostflags, this statement is no longer true.
Because Python 3.10 requires OpenSSL 1.1.1 (PEP 644), we no longer have to maintain a copy of the host flags.

This PR removes thehostflags member from thePySSLContext struct.

https://bugs.python.org/issue45399

arhadthedev reacted with thumbs up emoji
@ramikgramikg changed the titleRemove hostflags from PySSLContextbpo-43669: Remove hostflags from PySSLContextOct 7, 2021
Copy link
Member

@tirantiran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

bpo-43669 is closed. This PR needs a new ticket.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phraseI have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@ramikg
Copy link
ContributorAuthor

bpo-43669 is closed. This PR needs a new ticket.

Is it possible to submit this PR without a bpo? (on the count of it being trivial)

@tiran
Copy link
Member

bpo-43669 is closed. This PR needs a new ticket.

Is it possible to submit this PR without a bpo? (on the count of it being trivial)

No, this is not a trivial change. Python requires a ticket for every change that has even a remote chance of affecting a single user. By definition, C and OpenSSL are not trivial, too.

@ramikgramikg changed the titlebpo-43669: Remove hostflags from PySSLContextbpo-45399: Remove hostflags from PySSLContextOct 7, 2021
@ramikg
Copy link
ContributorAuthor

ramikg commentedOct 7, 2021
edited
Loading

Understood, thank you.

@bedevere-bot
Copy link

Most changes to Pythonrequire a NEWS entry.

Please add it using theblurb_it web app or theblurb command-line tool.

1 similar comment
@bedevere-bot
Copy link

Most changes to Pythonrequire a NEWS entry.

Please add it using theblurb_it web app or theblurb command-line tool.

@ramikg
Copy link
ContributorAuthor

ramikg commentedOct 26, 2024
edited
Loading

I have made the requested changes; please review again.

@bedevere-app
Copy link

Thanks for making the requested changes!

@tiran: please review the changes made to this pull request.

@python-cla-bot
Copy link

python-cla-botbot commentedApr 18, 2025
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

@ramikgramikgmannequin mentioned this pull requestApr 18, 2025
@picnixzpicnixz changed the titlebpo-45399: Remove hostflags from PySSLContextgh-89562: Remove hostflags from PySSLContextApr 18, 2025
@gpsheadgpshead merged commit9752c84 intopython:mainApr 18, 2025
45 of 46 checks passed
@gpsheadgpshead self-assigned thisApr 18, 2025
@ramikgramikg deleted the remove-hostflags-from-pysslcontext-struct branchApril 19, 2025 03:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gpsheadgpsheadgpshead approved these changes

@tirantiranAwaiting requested review from tiran

@picnixzpicnixzAwaiting requested review from picnixzpicnixz is a code owner

Assignees

@gpsheadgpshead

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@ramikg@bedevere-bot@tiran@gpshead@the-knights-who-say-ni@ezio-melotti

[8]ページ先頭

©2009-2025 Movatter.jp