Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-45399: Remove hostflags from PySSLContext #28602

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ramikg
Copy link
Contributor

@ramikg ramikg commented Sep 28, 2021

The PySSLContext struct in Modules/_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 function X509_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 the hostflags member from the PySSLContext struct.

https://bugs.python.org/issue45399

@ramikg ramikg changed the title Remove hostflags from PySSLContext bpo-43669: Remove hostflags from PySSLContext Oct 7, 2021
Copy link
Member

@tiran tiran 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 phrase I 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
Contributor Author

ramikg commented Oct 7, 2021

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

tiran commented Oct 7, 2021

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.

@ramikg ramikg changed the title bpo-43669: Remove hostflags from PySSLContext bpo-45399: Remove hostflags from PySSLContext Oct 7, 2021
@ramikg
Copy link
Contributor Author

ramikg commented Oct 7, 2021

Understood, thank you.

@ramikg ramikg requested a review from tiran May 28, 2022 11:18
@ramikg ramikg force-pushed the remove-hostflags-from-pysslcontext-struct branch from 33c1a0c to f2dcced Compare December 29, 2022 18:54
@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

1 similar comment
@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@ramikg ramikg force-pushed the remove-hostflags-from-pysslcontext-struct branch from 1870218 to f26a984 Compare October 26, 2024 12:48
@ramikg
Copy link
Contributor Author

ramikg commented Oct 26, 2024

I have made the requested changes; please review again.

@bedevere-app
Copy link

bedevere-app bot commented Oct 26, 2024

Thanks for making the requested changes!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants