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

allow parsing of nonstandard country name and jurisdiction country name #6641

Merged
merged 1 commit into from Nov 21, 2021

Conversation

reaperhulk
Copy link
Member

The spec requires both of these to be exactly two characters to
correspond with ISO country codes. Reality is sometimes messier, so this
allows parsing (but not encoding) of this invalid data. Parsing will
raise a UserWarning if incorrect lengths are detected.

fixes #3857

The spec requires both of these to be exactly two characters to
correspond with ISO country codes. Reality is sometimes messier, so this
allows parsing (but not encoding) of this invalid data. Parsing will
raise a UserWarning if incorrect lengths are detected.
@alex
Copy link
Member

alex commented Nov 21, 2021

Is the idea that these will be supported forever, or is this temporary?

@alex alex enabled auto-merge (squash) November 21, 2021 03:16
@alex alex merged commit 5bd0c10 into pyca:main Nov 21, 2021
@reaperhulk reaperhulk deleted the allow-bad-country branch November 21, 2021 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support non-standard X509 country names
2 participants