2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 18:07:55 +00:00

Actually bump and not lower the TLS version

This commit is contained in:
Albert Vaca Cintora 2023-04-22 11:08:18 +02:00
parent 9e5c9ca11a
commit cadb9892e4

View File

@ -209,7 +209,7 @@ public class SslHelper {
trustManagerFactory.init(keyStore);
// Setup custom trust manager if device not trusted
SSLContext tlsContext = SSLContext.getInstance("TLS");
SSLContext tlsContext = SSLContext.getInstance("TLSv1.3"); // Support TLS up to 1.3
if (isDeviceTrusted) {
tlsContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), RandomHelper.secureRandom);
} else {