Skip to content

[Android] Investigate support for SSLStream below API Level 24 #78715

Description

@steveisok

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:

usingvarclient=newTcpClient("login.sequrix.com",443);usingvarstream=newSslStream(client.GetStream(),false);stream.AuthenticateAsClient(newSslClientAuthenticationOptions(){TargetHost="login.sequrix.com"});stream.Read(newbyte[100],0,100);

We should investigate if there are any alternative approaches.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions