mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 05:37:43 +00:00
Do not force TLS v1
Stop specifying the TLS version we want and let the system chose Co-authored-by: Daniel Tang <danielzgtg.opensource@gmail.com>
This commit is contained in:
parent
e07fe54d5c
commit
e2dbc39e3a
@ -209,7 +209,7 @@ public class SslHelper {
|
||||
trustManagerFactory.init(keyStore);
|
||||
|
||||
// Setup custom trust manager if device not trusted
|
||||
SSLContext tlsContext = SSLContext.getInstance("TLSv1"); //Newer TLS versions are only supported on API 16+
|
||||
SSLContext tlsContext = SSLContext.getInstance("TLS");
|
||||
if (isDeviceTrusted) {
|
||||
tlsContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), RandomHelper.secureRandom);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user