Skip to content

Conversation

@tiran
Copy link
Member

@tiran tiran commented Jan 28, 2018

Add test cases for IDNA 2003 and 2008 host names. IDNA 2003
internationalized host names are working since bpo-31399 has landed. IDNA
2008 deviations are still broken and will be fixed in another patch.

Signed-off-by: Christian Heimes [email protected]

https://bugs.python.org/issue28414

Copy link
Contributor

@njsmith njsmith left a comment

Choose a reason for hiding this comment

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

Looks good except for one minor comment.

I'm kind of confused about what your overall plan for this is right now – are you still planning to make sslsock.server_hostname be an A-label? Are you still planning to fix the SNI callback as discussed previously?

Should there also be tests for SSLObject's handling of server_hostname?

Copy link
Contributor

Choose a reason for hiding this comment

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

This comment does not appear to match what this is testing right now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, thanks. I fixed the comment

@tiran
Copy link
Member Author

tiran commented Jan 29, 2018

I clarified the commit message. I'll address IDNA 2008 after beta 1. Ned granted an exception. This PR just proofs that most IDNA cases are working. Only IDNA 2008 deviations like German' ß are still not working yet.

I'll also add SSLObject tests when I fix IDNA 2008. Right now SSLObject behaves slightly differently (of course) and I'm having a hard time to write a test for it.

Add test cases for IDNA 2003 and 2008 host names. IDNA 2003
internationalized host names are working since bpo-31399 has landed. IDNA
2008 deviations are still broken and will be fixed in another patch.

Signed-off-by: Christian Heimes <[email protected]>
@tiran tiran merged commit 66e5742 into python:master Jan 29, 2018
@bedevere-bot
Copy link

@tiran: Please replace # with GH- in the commit message next time. Thanks!

@tiran tiran deleted the ssl_idna_test branch January 29, 2018 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants