| Index: net/base/x509_certificate.h
|
| diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h
|
| index c2a378ae7853c0490e5407a98427b81d3621df25..89bf47696a39c6ee47af22f4cb955840926ee5bf 100644
|
| --- a/net/base/x509_certificate.h
|
| +++ b/net/base/x509_certificate.h
|
| @@ -283,6 +283,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 ResetCertStore();
|
| +#endif
|
| +
|
| // Calculates the SHA-1 fingerprint of the certificate. Returns an empty
|
| // (all zero) fingerprint on failure.
|
| static SHA1Fingerprint CalculateFingerprint(OSCertHandle cert_handle);
|
|
|