-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Android] Investigate support for SSLStream below API Level 24 #78715
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsThe block below will throw a PNSE because SNIHostName and setServerNames are only supported on API level 24 and above. Here is a sample that can throw the PNSE:
We should investigate if there are any alternative approaches.
|
Tagging subscribers to this area: @dotnet/ncl, @vcsjones Issue DetailsThe block below will throw a PNSE because SNIHostName and setServerNames are only supported on API level 24 and above. Here is a sample that can throw the PNSE:
We should investigate if there are any alternative approaches.
|
After looking at this again, it does seem returning runtime/src/native/libs/System.Security.Cryptography.Native.Android/pal_sslstream.c Lines 484 to 488 in 563297d
It does appear that the java |
This also effects SocketsHttpHandler and ClientWebSocket usage with HTTPS. For example:
|
I digged into it and it seems that we can force APIs 21-23 to do what we want, although it's not very clean. I'll try to open a draft PR so that we can have a discussion if those code changes are acceptable or not. |
API23 is 5+ years out of supported version, do we need to support that in net8? |
I'll raise that with the larger team and see if there's a desire to bump the min version. I think this definitely needs to be fixed for .NET 6/7. |
The block below will throw a PNSE because SNIHostName and SSLEngine.setServerNames are only supported on API level 24 and above.
Here is a sample that can throw the PNSE:
We should investigate if there are any alternative approaches.
The text was updated successfully, but these errors were encountered: