mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-22 05:43:02 +00:00
Get rid of TLS support for 16 to 18 API versions
This commit is contained in:
+2
-2
@@ -91,8 +91,8 @@ public class HttpClient {
|
|||||||
|
|
||||||
SSLSocketFactory sslSocketFactory;
|
SSLSocketFactory sslSocketFactory;
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT) {
|
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
|
// TLS v1.2 is disabled by default in API 19, use custom SSLSocketFactory to enable it
|
||||||
sslSocketFactory = new TLSSocketFactory(sslContext.getSocketFactory());
|
sslSocketFactory = new TLSSocketFactory(sslContext.getSocketFactory());
|
||||||
} else {
|
} else {
|
||||||
sslSocketFactory = sslContext.getSocketFactory();
|
sslSocketFactory = sslContext.getSocketFactory();
|
||||||
|
|||||||
Reference in New Issue
Block a user