1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Get rid of TLS support for 16 to 18 API versions

This commit is contained in:
davigonz 2019-03-08 10:11:11 +01:00
parent f06732b666
commit a09f3d23b5

View File

@ -91,8 +91,8 @@ public class HttpClient {
SSLSocketFactory sslSocketFactory;
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT) {
// TLS v1.2 is disabled by default from API 16 to 19, use custom SSLSocketFactory to enable it
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.KITKAT) {
// TLS v1.2 is disabled by default in API 19, use custom SSLSocketFactory to enable it
sslSocketFactory = new TLSSocketFactory(sslContext.getSocketFactory());
} else {
sslSocketFactory = sslContext.getSocketFactory();