Commit 7e5f3654 authored by Jeremy Meng's avatar Jeremy Meng

Remove usage of SslStream.IsEncrypted as it is not availalbe on dnxcore. On...

Remove usage of SslStream.IsEncrypted as it is not availalbe on dnxcore.  On Desktop it simply returns IsAuthenticated.
parent 36eb3abf
......@@ -729,8 +729,11 @@ SocketMode ISocketCallback.Connected(Stream stream, TextWriter log)
, EncryptionPolicy.RequireEncryption
#endif
);
ssl.AuthenticateAsClient(host);
if (!ssl.IsEncrypted)
try
{
ssl.AuthenticateAsClient(host);
}
catch (AuthenticationException)
{
RecordConnectionFailed(ConnectionFailureType.AuthenticationFailure);
multiplexer.Trace("Encryption failure");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment