mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-28 00:48:50 +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, | ||||
| 			UnknownHostException { | ||||
| 		Socket sslSocket = mSslContext.getSocketFactory().createSocket(socket, host, port, autoClose); | ||||
| 		((SSLSocket) sslSocket).setEnabledProtocols(new String[]{"TLSv1", "TLSv1.1", "TLSv1.2"}); | ||||
| 		verifyPeerIdentity(host, port, sslSocket); | ||||
| 		return sslSocket; | ||||
| 	} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user