Skip to content

Commit 22eb1e5

Browse files
fpanizzaBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:fix/androidHttpTls1' into beta
1 parent 78ed3af commit 22eb1e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

android/src/main/java/com/genexus/specific/android/HttpClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ public void prepareSSLSocket(SSLSocket socket) {
8888
// enable TLSv1.1/1.2 if available
8989
// (see https://github.com/rfc2822/davdroid/issues/229)
9090
String[] supportedProtocols = socket.getSupportedProtocols();
91+
9192
ArrayList<String> tempList = new ArrayList<String>();
9293
Collections.addAll(tempList, supportedProtocols);
93-
// remove only olds and unsecure protocols (SSLv3 ), TLS in all version are supported.
94+
// remove only olds and unsecure protocols (SSLv3 ), TLS 1.2 and up are supported.
9495
tempList.remove("SSLv3");
9596
// from : https://blog.dev-area.net/2015/08/13/android-4-1-enable-tls-1-1-and-tls-1-2/
96-
// add 1.1 and 1.2 if not yet added, at least in Android 4.x
97-
if (!tempList.contains("TLSv1.1"))
98-
tempList.add("TLSv1.1");
97+
// Tls 1.1 is not supoerted anymore in Android 16 or up. Exception java.lang.IllegalArgumentException: protocol TLSv1.1 is not supported if added
98+
// add 1.2 if not yet added, at least in Android 4.x
9999
if (!tempList.contains("TLSv1.2"))
100100
tempList.add("TLSv1.2");
101101

0 commit comments

Comments
 (0)