Sharp.Xmpp
Sharp.Xmpp copied to clipboard
TLS 1.2
instead of using
XmppCore.cs:
sslStream.AuthenticateAsClient(hostname)
which defaults always to TLS 1.0
we should use something like this
sslStream.AuthenticateAsClient(hostname, null, SslProtocols.Tls12 | SslProtocols.Tls11 | SslProtocols.Tls, false);
which allows every TLS Version.
Good proposal, I will check it for the next version. Feel free to make a pull request
sorry for only opening issues, i am a programming newbie, so i dont really know if you want me to make pull requests, but maybe i will try for one of the easier solveable issues in the future :)
it also would be a good idea, to expose a public property which gets the TLS Version the connection has. Encryption is important today and this could be useful for developers.