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:
parent
f06732b666
commit
a09f3d23b5
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user