We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f60e405 commit 2ceadc0Copy full SHA for 2ceadc0
smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java
@@ -879,7 +879,11 @@ else if (keyStoreType != null) {
879
verifierHostname = getXMPPServiceDomain().toString();
880
}
881
882
- if (!verifier.verify(verifierHostname, sslSocket.getSession())) {
+
883
+ final boolean verificationSuccessful;
884
+ // Verify the TLS session.
885
+ verificationSuccessful = verifier.verify(verifierHostname, sslSocket.getSession());
886
+ if (!verificationSuccessful) {
887
throw new CertificateException(
888
"Hostname verification of certificate failed. Certificate does not authenticate "
889
+ getXMPPServiceDomain());
0 commit comments