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

Unified Diff: chromeos/network/client_cert_util.h

Issue 135193007: Use user specific NSSDatabase in CertLoader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: return of slow task runner Created 6 years, 11 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
Index: chromeos/network/client_cert_util.h
diff --git a/chromeos/network/client_cert_util.h b/chromeos/network/client_cert_util.h
index 1972733268f31218dc0f3522ee3ab5b1e8a170f1..5b6839dacb9e691412e20528b004accc05fa498c 100644
--- a/chromeos/network/client_cert_util.h
+++ b/chromeos/network/client_cert_util.h
@@ -6,6 +6,7 @@
#define CHROMEOS_NETWORK_CLIENT_CERT_UTIL_H_
#include <string>
+#include <vector>
#include "base/memory/ref_counted.h"
#include "chromeos/chromeos_export.h"
@@ -17,6 +18,7 @@ class DictionaryValue;
namespace net {
struct CertPrincipal;
class X509Certificate;
+typedef std::vector<scoped_refptr<X509Certificate> > CertificateList;
}
namespace chromeos {
@@ -43,7 +45,8 @@ bool CertPrincipalMatches(const IssuerSubjectPattern& pattern,
// Fetches the matching certificate that has the latest valid start date.
// Returns a NULL refptr if there is no such match.
CHROMEOS_EXPORT scoped_refptr<net::X509Certificate> GetCertificateMatch(
- const CertificatePattern& pattern);
+ const CertificatePattern& pattern,
+ const net::CertificateList& all_certs);
// If not empty, sets the TPM properties in |properties|. If |pkcs11_id| is not
// NULL, also sets the ClientCertID. |cert_config_type| determines which

Powered by Google App Engine
This is Rietveld 408576698