Merge pull request #1383 from mfietz/issue/1374-1382-tlsv1

Allow TLSv1
This commit is contained in:
Tom Hennen 2015-11-16 18:30:35 -05:00
commit 4800cba021
1 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,7 @@
package de.danoeh.antennapod.core.service.download;
import android.support.annotation.NonNull;
import android.os.Build;
import android.support.annotation.NonNull;
import android.util.Log;
import com.squareup.okhttp.OkHttpClient;
@ -18,8 +18,6 @@ import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import de.danoeh.antennapod.core.BuildConfig;
/**
* Provides access to a HttpClient singleton.
*/
@ -151,7 +149,7 @@ public class AntennapodHttpClient {
}
private void configureSocket(SSLSocket s) {
s.setEnabledProtocols(new String[] { "TLSv1.2", "TLSv1.1" } );
s.setEnabledProtocols(new String[] { "TLSv1.2", "TLSv1.1", "TLSv1" } );
}
}