Commit 5d647230 authored by Marc Gravell's avatar Marc Gravell

Double check connection handshake (mainly for Mono, where the earlier flag isn't available)

parent 9651e5e4
......@@ -497,6 +497,12 @@ SocketMode ISocketCallback.Connected(Stream stream)
#endif
);
ssl.AuthenticateAsClient(config.SslHost);
if(!ssl.IsEncrypted)
{
RecordConnectionFailed(ConnectionFailureType.AuthenticationFailure);
multiplexer.Trace("Encryption failure");
return SocketMode.Abort;
}
stream = ssl;
socketMode = SocketMode.Async;
}
......
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