mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-08 00:16:09 +00:00
Apply protocol enabling to extra createSocket method after merging fix on tunneled HTTP
This commit is contained in:
parent
d66d5047b4
commit
950a3ff8f7
@ -313,6 +313,7 @@ public class AdvancedSslSocketFactory implements SecureProtocolSocketFactory {
|
|||||||
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException,
|
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException,
|
||||||
UnknownHostException {
|
UnknownHostException {
|
||||||
Socket sslSocket = mSslContext.getSocketFactory().createSocket(socket, host, port, autoClose);
|
Socket sslSocket = mSslContext.getSocketFactory().createSocket(socket, host, port, autoClose);
|
||||||
|
((SSLSocket) sslSocket).setEnabledProtocols(new String[]{"TLSv1", "TLSv1.1", "TLSv1.2"});
|
||||||
verifyPeerIdentity(host, port, sslSocket);
|
verifyPeerIdentity(host, port, sslSocket);
|
||||||
return sslSocket;
|
return sslSocket;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user