Commit 6b6ac4dc authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

TLS for s2s is enabled by default. JM-395

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3251 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7ae8d7df
...@@ -233,7 +233,7 @@ public class OutgoingServerSession extends Session { ...@@ -233,7 +233,7 @@ public class OutgoingServerSession extends Session {
*/ */
private static OutgoingServerSession createOutgoingSession(String domain, String hostname, private static OutgoingServerSession createOutgoingSession(String domain, String hostname,
int port) { int port) {
boolean useTLS = JiveGlobals.getBooleanProperty("xmpp.server.tls.enabled", false); boolean useTLS = JiveGlobals.getBooleanProperty("xmpp.server.tls.enabled", true);
RemoteServerConfiguration configuration = RemoteServerManager.getConfiguration(hostname); RemoteServerConfiguration configuration = RemoteServerManager.getConfiguration(hostname);
if (configuration != null) { if (configuration != null) {
// TODO Use the specific TLS configuration for this remote server // TODO Use the specific TLS configuration for this remote server
...@@ -340,7 +340,7 @@ public class OutgoingServerSession extends Session { ...@@ -340,7 +340,7 @@ public class OutgoingServerSession extends Session {
Element proceed = reader.parseDocument().getRootElement(); Element proceed = reader.parseDocument().getRootElement();
if (proceed != null && proceed.getName().equals("proceed")) { if (proceed != null && proceed.getName().equals("proceed")) {
Log.debug("OS - Negotiating TLS with " + hostname); Log.debug("OS - Negotiating TLS with " + hostname);
connection.startTLS(true); connection.startTLS(true, hostname);
Log.debug("OS - TLS negotiation with " + hostname + " was successful"); Log.debug("OS - TLS negotiation with " + hostname + " was successful");
// TLS negotiation was successful so initiate a new stream // TLS negotiation was successful so initiate a new stream
...@@ -391,6 +391,7 @@ public class OutgoingServerSession extends Session { ...@@ -391,6 +391,7 @@ public class OutgoingServerSession extends Session {
else { else {
Log.debug("OS - Error, EXTERNAL SASL authentication with " + hostname + Log.debug("OS - Error, EXTERNAL SASL authentication with " + hostname +
" failed"); " failed");
return null;
} }
} }
} }
......
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