am 4d3f3f3a: Fix hostname verifier for Exchange connections.

* commit '4d3f3f3ab95c03d4c1ab308801b92ba1d9df2276':
  Fix hostname verifier for Exchange connections.
This commit is contained in:
Ben Komalo 2011-10-12 14:28:53 -07:00 committed by Android Git Automerger
commit 172d05da23

View File

@ -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;
}
/**