Index: net/base/x509_certificate.h |
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h |
index 1866a17388acf16cd0db64a20b77c5d6e5e53ec6..40066fe9dd33d7c5aa94ffdaa046a869099b5f40 100644 |
--- a/net/base/x509_certificate.h |
+++ b/net/base/x509_certificate.h |
@@ -281,6 +281,7 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> { |
private: |
friend class base::RefCountedThreadSafe<X509Certificate>; |
+ friend class TestRootCerts; // For unit tests |
FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, Cache); |
FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, IntermediateCertificates); |
@@ -302,6 +303,12 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> { |
#endif |
bool VerifyEV() const; |
+#if defined(USE_OPENSSL) |
+ // Resets the store returned by cert_store() to default state. Used by |
+ // TestRootCerts to undo modifications. |
+ static void ResetStore(); |
wtc
2010/11/23 00:30:11
Nit: consider naming this method ResetCertStore.
|
+#endif |
+ |
// Calculates the SHA-1 fingerprint of the certificate. Returns an empty |
// (all zero) fingerprint on failure. |
static SHA1Fingerprint CalculateFingerprint(OSCertHandle cert_handle); |