Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: net/android/java/src/org/chromium/net/X509Util.java

Issue 161653002: Add function to support clearing SSL/certificate store. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/cert/cert_database.h » ('j') | net/cert/cert_database.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/android/java/src/org/chromium/net/X509Util.java
diff --git a/net/android/java/src/org/chromium/net/X509Util.java b/net/android/java/src/org/chromium/net/X509Util.java
index 90012a4aa7496f92876e9215db48251b1829ab56..e92dad1c2daed4b818516d9c7eb7f7db82430348 100644
--- a/net/android/java/src/org/chromium/net/X509Util.java
+++ b/net/android/java/src/org/chromium/net/X509Util.java
@@ -291,6 +291,11 @@ public class X509Util {
ensureInitialized();
}
+ public static void clearCertificateStore() {
Ryan Sleevi 2014/02/12 22:56:22 This is coupling an implementation detail with the
Yaron 2014/02/12 23:24:20 Done.
+ Log.d(TAG, "Drop SSL cache");
+ nativeDropCertificateCache();
Ryan Sleevi 2014/02/12 22:56:22 Ditto here and for the log message
Yaron 2014/02/12 23:24:20 Done.
+ }
+
/**
* Convert a DER encoded certificate to an X509Certificate.
*/
@@ -438,6 +443,9 @@ public class X509Util {
public static void setDisableNativeCodeForTest(boolean disabled) {
sDisableNativeCodeForTest = disabled;
}
+
+ private static native void nativeDropCertificateCache();
+
/**
* Notify the native net::CertDatabase instance that the system database has been updated.
*/
« no previous file with comments | « no previous file | net/cert/cert_database.h » ('j') | net/cert/cert_database.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698