Revert "Track updates to Conscrypt". DO NOT MERGE ANYWHERE.
Tracks the revert of the corresponding conscrypt CL.
This reverts commit 7fdce769c3.
This is a clean revert. The upload hook to fix lint errors was not run
(this CL was uploaded with --no-verify).
Test: Treehugger
Test: make droid cts
Bug: 62424503
Change-Id: I5b8728575c4c02de10fff227ba40ec6ddc7ffa46
This commit is contained in:
@@ -20,7 +20,6 @@ import android.os.SystemProperties;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.internal.os.RoSystemProperties;
|
||||
import com.android.org.conscrypt.Conscrypt;
|
||||
import com.android.org.conscrypt.OpenSSLContextImpl;
|
||||
import com.android.org.conscrypt.OpenSSLSocketImpl;
|
||||
import com.android.org.conscrypt.SSLClientSessionCache;
|
||||
@@ -213,7 +212,7 @@ public class SSLCertificateSocketFactory extends SSLSocketFactory {
|
||||
private SSLSocketFactory makeSocketFactory(
|
||||
KeyManager[] keyManagers, TrustManager[] trustManagers) {
|
||||
try {
|
||||
OpenSSLContextImpl sslContext = (OpenSSLContextImpl) Conscrypt.newPreferredSSLContextSpi();
|
||||
OpenSSLContextImpl sslContext = OpenSSLContextImpl.getPreferred();
|
||||
sslContext.engineInit(keyManagers, trustManagers, null);
|
||||
sslContext.engineGetClientSessionContext().setPersistentCache(mSessionCache);
|
||||
return sslContext.engineGetSocketFactory();
|
||||
|
||||
Reference in New Issue
Block a user