Skip to content

[release/6.0-preview5] Android: Make the lookup for getApplicationProtocol optional #53072

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

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 21, 2021

Backport of #53001 to release/6.0-preview5

/cc @akoeplinger @steveisok

Customer Impact

We were using an Android API that was introduced in API level 29 ( == Android 10), so running on older devices would result in a crash at startup.

This change makes the initial method lookup optional.

Testing

Manual and automated testing.

Risk

Low, just makes a method lookup optional.

Regression

Yes, this worked in a previous preview.

Steve Pfister added 2 commits May 21, 2021 09:07
The method getApplicationProtocol in javax.net.ssl.SSLEngine is only supported on API level 29 and above, so running on older devices would result in a crash. This change makes the initial method lookup optional and AndroidCryptoNative_SSLStreamGetApplicationProtocol in pal_sslstream.c will error if it is not supported.

Fixes #52965
@ghost ghost added the area-System.Security label May 21, 2021
@ghost
Copy link

ghost commented May 21, 2021

Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #53001 to release/6.0-preview5

/cc @akoeplinger @steveisok

Customer Impact

Testing

Risk

Author: github-actions[bot]
Assignees: -
Labels:

area-System.Security

Milestone: -

@akoeplinger akoeplinger changed the title [release/6.0-preview5] Make the lookup for getApplicationProtocol optional [release/6.0-preview5] Android: Make the lookup for getApplicationProtocol optional May 21, 2021
@akoeplinger akoeplinger self-assigned this May 21, 2021
@akoeplinger akoeplinger added this to the 6.0.0 milestone May 21, 2021
@akoeplinger akoeplinger added the Servicing-consider Issue for next servicing release review label May 21, 2021
@leecow leecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels May 25, 2021
@Anipik Anipik merged commit 5f5c374 into release/6.0-preview5 May 25, 2021
@Anipik Anipik deleted the backport/pr-53001-to-release/6.0-preview5 branch May 25, 2021 18:01
@ghost ghost locked as resolved and limited conversation to collaborators Jun 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Security Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants