mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-11-03 20:08:00 +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;
 | 
			
		||||
 | 
			
		||||
                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();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user