-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Test quirks of HostnameVerifier #6353
Conversation
The approval gives me nice warm fuzzies, but it's blocked to resolve what we think the behaviour should be. Or just assert the observed external behaviour since it is JSSE? |
Should reject these in Certifikit? Lets change it to always return false if we see any non-ASCII characters? They shouldn’t be in the certificate and therefore we shouldn’t match if they’re in the hostname arg. |
*/ | ||
@Test @Ignore public void testWilcardNonAsciiSubjectAlt() throws Exception { | ||
@Test public void testWilcardNonAsciiSubjectAlt() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swankjesse I reactivated these tests as part of the change, are you ok with these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep!
@swankjesse I've landed with this change, overall probably worth a quick post review for style. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
*/ | ||
@Test @Ignore public void testWilcardNonAsciiSubjectAlt() throws Exception { | ||
@Test public void testWilcardNonAsciiSubjectAlt() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep!
* Test quirks of HostnameVerifier. * Restrict successful results to ascii input.
* Use generated certificates in unit tests (#6346) * Use generated certificates in unit tests * Strict to ascii lowercase implementation Co-authored-by: Jesse Wilson <jwilson@squareup.com> * More restrictive behaviour of OkHostnameVerifier (#6353) * Test quirks of HostnameVerifier. * Restrict successful results to ascii input. Co-authored-by: Jesse Wilson <jwilson@squareup.com>
No description provided.