Commit 1f993e82 authored by Grigory Fedorov's avatar Grigory Fedorov

Smack connection: keystore path and security mode set. #502

parent 4b75dcbe
...@@ -320,11 +320,8 @@ public class ConnectionThread implements ...@@ -320,11 +320,8 @@ public class ConnectionThread implements
} }
private void onReady(XMPPTCPConnectionConfiguration.Builder builder) { private void onReady(XMPPTCPConnectionConfiguration.Builder builder) {
if (Build.VERSION.SDK_INT >= 14) { builder.setKeystoreType("AndroidCAStore");
// connectionConfiguration.setTruststoreType("AndroidCAStore");
// connectionConfiguration.setTruststorePassword(null);
// connectionConfiguration.setTruststorePath(null);
}
// Disable smack`s reconnection. // Disable smack`s reconnection.
// connectionConfiguration.setReconnectionAllowed(false); // connectionConfiguration.setReconnectionAllowed(false);
// We will send custom presence. // We will send custom presence.
...@@ -348,7 +345,7 @@ public class ConnectionThread implements ...@@ -348,7 +345,7 @@ public class ConnectionThread implements
} }
// connectionConfiguration.setSASLAuthenticationEnabled(saslEnabled); // connectionConfiguration.setSASLAuthenticationEnabled(saslEnabled);
// connectionConfiguration.setSecurityMode(tlsMode.getSecurityMode()); builder.setSecurityMode(tlsMode.getSecurityMode());
builder.setCompressionEnabled(compression); builder.setCompressionEnabled(compression);
xmppConnection = new XMPPTCPConnection(builder.build()); xmppConnection = new XMPPTCPConnection(builder.build());
......
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