-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix SNI with latest Google Play Sevices #542
base: master
Are you sure you want to change the base?
Conversation
I know I had this exact code at some point, and then reverted. Couldn't use that method because some version of android would crap out. If I recall, I think it was hostname verification that failed on wildcards? I honestly can't remember. I need to do a regression test back to API 9 and see what it was. |
But if you are using conscrypt manually, you can insert a middleware that does this in AndroidAsync as well. |
@koush with further testing, it appears that this PR breaks for all devices that are not using Perhaps we need to run |
@mkonecny I believe this code should only be used when conscrypt is the underlying SSL stack. That means Android 5.0+ (I think), and obviously GPS conscrypt. I'll need look through the android release history and see exactly when they switched SSL stacks. |
I'm a bit conflicted about introducing GPS Conscrypt as an optional dependency to AndroidAsync (where it is right now in ion). |
@@ -69,7 +69,7 @@ protected SSLEngine createConfiguredSSLEngine(GetSocketData data, String host, i | |||
} | |||
|
|||
if (sslEngine == null) | |||
sslEngine = sslContext.createSSLEngine(); | |||
sslEngine = sslContext.createSSLEngine(host, port); |
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.
808
No description provided.