Merge "Track change to Conscrypt"
This commit is contained in:
@ -202,7 +202,7 @@ public class SSLCertificateSocketFactory extends SSLSocketFactory {
|
||||
private SSLSocketFactory makeSocketFactory(
|
||||
KeyManager[] keyManagers, TrustManager[] trustManagers) {
|
||||
try {
|
||||
OpenSSLContextImpl sslContext = new OpenSSLContextImpl();
|
||||
OpenSSLContextImpl sslContext = OpenSSLContextImpl.getPreferred();
|
||||
sslContext.engineInit(keyManagers, trustManagers, null);
|
||||
sslContext.engineGetClientSessionContext().setPersistentCache(mSessionCache);
|
||||
return sslContext.engineGetSocketFactory();
|
||||
|
@ -80,7 +80,7 @@ public class HttpsConnection extends Connection {
|
||||
cache = FileClientSessionCache.usingDirectory(sessionDir);
|
||||
}
|
||||
|
||||
OpenSSLContextImpl sslContext = new OpenSSLContextImpl();
|
||||
OpenSSLContextImpl sslContext = OpenSSLContextImpl.getPreferred();
|
||||
|
||||
// here, trust managers is a single trust-all manager
|
||||
TrustManager[] trustManagers = new TrustManager[] {
|
||||
|
@ -907,7 +907,7 @@ public class SSLSocketTest extends TestCase {
|
||||
*/
|
||||
public void testClientSessionCaching() throws IOException,
|
||||
KeyManagementException {
|
||||
OpenSSLContextImpl context = new OpenSSLContextImpl();
|
||||
OpenSSLContextImpl context = OpenSSLContextImpl.getPreferred();
|
||||
|
||||
// Cache size = 2.
|
||||
FakeClientSessionCache fakeCache = new FakeClientSessionCache();
|
||||
@ -1000,7 +1000,7 @@ public class SSLSocketTest extends TestCase {
|
||||
|
||||
public void testFileBasedClientSessionCache() throws IOException,
|
||||
KeyManagementException {
|
||||
OpenSSLContextImpl context = new OpenSSLContextImpl();
|
||||
OpenSSLContextImpl context = OpenSSLContextImpl.getPreferred();
|
||||
String tmpDir = System.getProperty("java.io.tmpdir");
|
||||
if (tmpDir == null) {
|
||||
fail("Please set 'java.io.tmpdir' system property.");
|
||||
|
Reference in New Issue
Block a user