mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 09:58:08 +00:00
Use getDefault to get the SSLContext
This commit is contained in:
parent
9e5c9ca11a
commit
d114ff4c1c
@ -209,7 +209,7 @@ public class SslHelper {
|
|||||||
trustManagerFactory.init(keyStore);
|
trustManagerFactory.init(keyStore);
|
||||||
|
|
||||||
// Setup custom trust manager if device not trusted
|
// Setup custom trust manager if device not trusted
|
||||||
SSLContext tlsContext = SSLContext.getInstance("TLS");
|
SSLContext tlsContext = SSLContext.getDefault();
|
||||||
if (isDeviceTrusted) {
|
if (isDeviceTrusted) {
|
||||||
tlsContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), RandomHelper.secureRandom);
|
tlsContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), RandomHelper.secureRandom);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user