You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PySSLContext struct 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.
The related PR removes the hostflags member from the PySSLContext struct.
Activity
ramikg commentedon Oct 7, 2021
The PySSLContext struct 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.
The related PR removes the hostflags member from the PySSLContext struct.
komugi commentedon Oct 9, 2021
Hi, I would like to work on it. I'll send the PR tomorrow.
ramikg commentedon Oct 9, 2021
In addition to #28602?
What would the PR include?
komugi commentedon Oct 9, 2021
You've already done it, my bad. It was a waste of time.
tiran commentedon Oct 9, 2021
I have limited time to review code at the moment. It might take a while until I can get back to you.
ramikg commentedon Oct 9, 2021
@komugi The same code written independently by multiple people is probably the most effective and least cost-efficient form of code review.
@christian.heimes Of course, there is no hurry.
gh-89562: Remove hostflags from PySSLContext (GH-28602)
gpshead commentedon Apr 18, 2025
thanks for the code cleanup!