File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
android/src/main/java/com/genexus/specific/android Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments