Index: net/base/x509_certificate.h |
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h |
index 2a7e6d7225ecb2a65697df6974a66c1f7625b85a..1866a17388acf16cd0db64a20b77c5d6e5e53ec6 100644 |
--- a/net/base/x509_certificate.h |
+++ b/net/base/x509_certificate.h |
@@ -26,6 +26,7 @@ |
#elif defined(USE_OPENSSL) |
// Forward declaration; real one in <x509.h> |
struct x509_st; |
+typedef struct x509_store_st X509_STORE; |
#elif defined(USE_NSS) |
// Forward declaration; real one in <cert.h> |
struct CERTCertificateStr; |
@@ -234,6 +235,12 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> { |
static HCERTSTORE cert_store(); |
#endif |
+#if defined(USE_OPENSSL) |
+ // Returns a handle to a global, in-memory certificate store. We |
+ // use it for test code, e.g. importing the test server's certificate. |
+ static X509_STORE* cert_store(); |
+#endif |
+ |
// Verifies the certificate against the given hostname. Returns OK if |
// successful or an error code upon failure. |
// |