Commit dd06349c authored by Grigory Fedorov's avatar Grigory Fedorov

Merge pull request #451 from merijn/develop

Correctly use SRV specified hostname for cert validation (#204)
parents 822404c0 3de96080
......@@ -848,7 +848,7 @@ public class XMPPConnection extends Connection {
throw new IllegalStateException();
context.init(kms, new TrustManager[]{new XMPPTrustManager(
KeyStoreManager.getOrCreateKeyStore(config),
getServiceName(), config.getCertificateListener(),
getHost(), config.getCertificateListener(),
chainCheck, domainCheck, allowSelfSigned)}, SECURE_RANDOM);
}
Socket plain = socket;
......
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