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

[Android] Fix SslStream on Android API 21-23 #78918

Merged

Conversation

simonrozsival
Copy link
Member

@simonrozsival simonrozsival commented Nov 28, 2022

The SSLEngine in Android APIs 21-23 doesn't give us a way to enable SNI directly but it's possible to achieve by calling a method that isn't in the standard Java API. This workaround isn't very clean but it gets the job done. We can drop it as soon as we drop support for these API levels.

Closes #78715

@ghost
Copy link

ghost commented Nov 28, 2022

Tagging subscribers to this area: @dotnet/ncl, @vcsjones
See info in area-owners.md if you want to be subscribed.

Issue Details

This is still WIP

Closes #78715
Depends on #78849

Author: simonrozsival
Assignees: -
Labels:

area-System.Net.Security

Milestone: -

@ghost
Copy link

ghost commented Nov 28, 2022

Tagging subscribers to this area: @dotnet/ncl, @vcsjones
See info in area-owners.md if you want to be subscribed.

Issue Details

This is still WIP

Closes #78715
Depends on #78849

Author: simonrozsival
Assignees: simonrozsival
Labels:

area-System.Net.Security, os-android

Milestone: -

@simonrozsival
Copy link
Member Author

/azp run runtime-android

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@simonrozsival simonrozsival force-pushed the fix-android-ssl-legacy-apis branch 3 times, most recently from 8a82616 to 2b81a23 Compare November 30, 2022 08:51
Code improvements
@simonrozsival simonrozsival force-pushed the fix-android-ssl-legacy-apis branch from 2b81a23 to ec54d10 Compare November 30, 2022 09:03
@simonrozsival simonrozsival marked this pull request as ready for review November 30, 2022 09:06
@simonrozsival
Copy link
Member Author

/azp run runtime-android

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@simonrozsival
Copy link
Member Author

The failing tests are unrelated to this PR.

@simonrozsival simonrozsival merged commit 2b1d11d into dotnet:main Dec 6, 2022
@simonrozsival simonrozsival deleted the fix-android-ssl-legacy-apis branch December 6, 2022 14:32
simonrozsival added a commit to simonrozsival/runtime that referenced this pull request Dec 6, 2022
simonrozsival added a commit to simonrozsival/runtime that referenced this pull request Dec 6, 2022
carlossanlop pushed a commit that referenced this pull request Jan 4, 2023
…9280)

* [Android] Fix SslStream on APIs 21-23 (#78918)

* [Android] Remove repeated calls to beginHandshake (#78849)

Cleanup

Revert some changes
@ghost ghost locked as resolved and limited conversation to collaborators Jan 5, 2023
@karelz karelz added this to the 8.0.0 milestone Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] Investigate support for SSLStream below API Level 24
5 participants