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.
2 parents 1c9894a + f743e54 commit 74a550fCopy full SHA for 74a550f
core/java/android/net/http/CertificateChainValidator.java
@@ -168,7 +168,13 @@ private static SslError verifyServerDomainAndCertificates(
168
}
169
170
try {
171
- SSLParametersImpl.getDefaultTrustManager().checkServerTrusted(chain, authType);
+ X509TrustManager x509TrustManager = SSLParametersImpl.getDefaultTrustManager();
172
+ if (x509TrustManager instanceof TrustManagerImpl) {
173
+ TrustManagerImpl trustManager = (TrustManagerImpl) x509TrustManager;
174
+ trustManager.checkServerTrusted(chain, authType, domain);
175
+ } else {
176
+ x509TrustManager.checkServerTrusted(chain, authType);
177
+ }
178
return null; // No errors.
179
} catch (GeneralSecurityException e) {
180
if (HttpLog.LOGV) {
0 commit comments