Enable all supported protocols including TLSv1.1 and 1.2

This commit is contained in:
Sam Whited 2014-10-16 10:02:47 -04:00
parent 88d88ffb7b
commit c4b9d42861
1 changed files with 1 additions and 0 deletions

View File

@ -519,6 +519,7 @@ public class XmppConnection implements Runnable {
SSLSocket sslSocket = (SSLSocket) factory.createSocket(socket,
socket.getInetAddress().getHostAddress(), socket.getPort(),
true);
sslSocket.setEnabledProtocols(sslSocket.getSupportedProtocols());
if (verifier != null
&& !verifier.verify(account.getServer(),