◐ Shell
reader mode source ↗
Skip to content

gh-100062: Remove error code tables from _ssl and err_names_to_codes#100063

Merged
zooba merged 2 commits into
python:mainfrom
davidben:ssl-err-tables
Apr 3, 2023
Merged

gh-100062: Remove error code tables from _ssl and err_names_to_codes#100063
zooba merged 2 commits into
python:mainfrom
davidben:ssl-err-tables

Conversation

@davidben

@davidben davidben commented Dec 6, 2022

Copy link
Copy Markdown
Contributor

Prior to #25300, the make_ssl_data.py script used various tables, exposed in _ssl, to update the error list.

After that PR, this is no longer used. Moreover, the err_names_to_codes map isn't used at all. Clean those up. This gets them out of the way if, in the future, OpenSSL provides an API to do what the code here is doing directly. (openssl/openssl#19848)

…codes

Prior to python#25300, the
make_ssl_data.py script used various tables, exposed in _ssl, to update
the error list.

After that PR, this is no longer used. Moreover, the err_names_to_codes
map isn't used at all. Clean those up. This gets them out of the way if,
in the future, OpenSSL provides an API to do what the code here is doing
directly. (openssl/openssl#19848)
@netlify

netlify Bot commented Dec 6, 2022

Copy link
Copy Markdown

Deploy Preview for python-cpython-preview ready!

Name Link
🔨 Latest commit 12b9314
🔍 Latest deploy log https://app.netlify.com/sites/python-cpython-preview/deploys/638faf8e61a30000096a8897
😎 Deploy Preview https://deploy-preview-100063--python-cpython-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@davidben

Copy link
Copy Markdown
Contributor Author

@tiran This PR look reasonable? Anything missing on my end?

@arhadthedev

Copy link
Copy Markdown
Member

Adding the skip news label because _ssl.h is located outside Include and thus cannot be used by third parties.

@arhadthedev arhadthedev added skip news extension-modules C modules in the Modules dir topic-SSL labels Apr 1, 2023
@arhadthedev

Copy link
Copy Markdown
Member

@jackjansen, @dstufft, @alex (as active ssl experts)

@alex

alex commented Apr 1, 2023

Copy link
Copy Markdown
Member

This looks good to me, but I'm going to wait for a bit before merging in case one of the other maintainers know of a reason these were exposed.

@davidben

davidben commented Apr 1, 2023

Copy link
Copy Markdown
Contributor Author

My (possibly wrong) guess is that were exposed for the older version of the make_ssl_data.py script. (See PR description.)

@zooba zooba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

LGTM

@bedevere-bot bedevere-bot added and removed awaiting review labels Apr 3, 2023
@zooba

zooba commented Apr 3, 2023

Copy link
Copy Markdown
Member

Let's merge this before the next alpha so there's more time for someone to shout if we shouldn't have dropped it.

@zooba zooba merged commit 02f9920 into python:main Apr 3, 2023
gaogaotiantian pushed a commit to gaogaotiantian/cpython that referenced this pull request Apr 8, 2023
…codes (pythonGH-100063)

Prior to python#25300, the
make_ssl_data.py script used various tables, exposed in _ssl, to update
the error list.

After that PR, this is no longer used. Moreover, the err_names_to_codes
map isn't used at all. Clean those up. This gets them out of the way if,
in the future, OpenSSL provides an API to do what the code here is doing
directly. (openssl/openssl#19848)
warsaw pushed a commit to warsaw/cpython that referenced this pull request Apr 11, 2023
…codes (pythonGH-100063)

Prior to python#25300, the
make_ssl_data.py script used various tables, exposed in _ssl, to update
the error list.

After that PR, this is no longer used. Moreover, the err_names_to_codes
map isn't used at all. Clean those up. This gets them out of the way if,
in the future, OpenSSL provides an API to do what the code here is doing
directly. (openssl/openssl#19848)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants