summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2013-08-13 17:31:32 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-13 17:31:32 -0700
commit3bc3240ffb51358fa706099cfc5e120cf0f1b60d (patch)
tree065d54c7b00869e32a972195bac1cf71e5ca9eee /core
parentd3a57029e80073aa3c7dfe1dbc8945d32968f6ae (diff)
parenta6226a2d202619ddb7e3e9765a3dc9f20241f853 (diff)
downloadframeworks_base-3bc3240ffb51358fa706099cfc5e120cf0f1b60d.zip
frameworks_base-3bc3240ffb51358fa706099cfc5e120cf0f1b60d.tar.gz
frameworks_base-3bc3240ffb51358fa706099cfc5e120cf0f1b60d.tar.bz2
am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance
* commit 'a6226a2d202619ddb7e3e9765a3dc9f20241f853': Use hostname verifier directly instead of instance
Diffstat (limited to 'core')
-rw-r--r--core/java/android/net/SSLCertificateSocketFactory.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/java/android/net/SSLCertificateSocketFactory.java b/core/java/android/net/SSLCertificateSocketFactory.java
index 846443d..70fbe39 100644
--- a/core/java/android/net/SSLCertificateSocketFactory.java
+++ b/core/java/android/net/SSLCertificateSocketFactory.java
@@ -80,9 +80,6 @@ public class SSLCertificateSocketFactory extends SSLSocketFactory {
}
};
- private static final HostnameVerifier HOSTNAME_VERIFIER =
- HttpsURLConnection.getDefaultHostnameVerifier();
-
private SSLSocketFactory mInsecureFactory = null;
private SSLSocketFactory mSecureFactory = null;
private TrustManager[] mTrustManagers = null;
@@ -193,7 +190,7 @@ public class SSLCertificateSocketFactory extends SSLSocketFactory {
if (session == null) {
throw new SSLException("Cannot verify SSL socket without session");
}
- if (!HOSTNAME_VERIFIER.verify(hostname, session)) {
+ if (!HttpsURLConnection.getDefaultHostnameVerifier().verify(hostname, session)) {
throw new SSLPeerUnverifiedException("Cannot verify hostname: " + hostname);
}
}