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.
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.