mirror of https://github.com/grpc/grpc-java.git
okhttp: Don't warn about missing Conscrypt
When running on the JDK, it is quite normal for Conscrypt not to be present. We'll end up using the JDK 9 ALPN API and everything will be fine. On Android, it would be extremely rare for someone to completely remove the default Android security providers, so the warning was almost never going to trigger on that platform anyway.
This commit is contained in:
parent
959060a824
commit
6f3542297c
|
@ -283,7 +283,7 @@ public class Platform {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Select the first recognized security provider according to the preference order returned by
|
* Select the first recognized security provider according to the preference order returned by
|
||||||
* {@link Security#getProviders}. If a recognized provider is not found then warn but continue.
|
* {@link Security#getProviders}.
|
||||||
*/
|
*/
|
||||||
private static Provider getAndroidSecurityProvider() {
|
private static Provider getAndroidSecurityProvider() {
|
||||||
Provider[] providers = Security.getProviders();
|
Provider[] providers = Security.getProviders();
|
||||||
|
@ -295,7 +295,6 @@ public class Platform {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
logger.log(Level.WARNING, "Unable to find Conscrypt");
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue