Index: net/cert/test_root_certs_openssl.cc |
diff --git a/net/cert/test_root_certs_openssl.cc b/net/cert/test_root_certs_openssl.cc |
index 99e1976c6c113f4cf4c3eccfacfb63e3b8a5254c..1b194bc646f7d69e3d7bb9d52ff0ff055a554805 100644 |
--- a/net/cert/test_root_certs_openssl.cc |
+++ b/net/cert/test_root_certs_openssl.cc |
@@ -42,6 +42,16 @@ bool TestRootCerts::IsEmpty() const { |
return temporary_roots_.empty(); |
} |
+bool TestRootCerts::Contains(X509* cert) const { |
+ for (std::vector<scoped_refptr<X509Certificate> >::const_iterator it = |
+ temporary_roots_.begin(); |
+ it != temporary_roots_.end(); ++it) { |
+ if (X509Certificate::IsSameOSCert(cert, (*it)->os_cert_handle())) |
+ return true; |
+ } |
+ return false; |
+} |
+ |
TestRootCerts::~TestRootCerts() {} |
void TestRootCerts::Init() {} |