am 4d3f3f3a
: Fix hostname verifier for Exchange connections.
* commit '4d3f3f3ab95c03d4c1ab308801b92ba1d9df2276': Fix hostname verifier for Exchange connections.
This commit is contained in:
commit
172d05da23
@ -74,7 +74,11 @@ public class SSLUtils {
|
||||
if (keyManager != null) {
|
||||
underlying.setKeyManagers(new KeyManager[] { keyManager });
|
||||
}
|
||||
return new SSLSocketFactory(underlying);
|
||||
SSLSocketFactory wrapped = new SSLSocketFactory(underlying);
|
||||
if (insecure) {
|
||||
wrapped.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
|
||||
}
|
||||
return wrapped;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user