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

Unified Diff: net/base/x509_certificate.h

Issue 11579002: Add X509Certificate::IsIssuedByEncoded() (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add missing base files (damn you git cl upload) Created 8 years 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
« no previous file with comments | « no previous file | net/base/x509_certificate_ios.cc » ('j') | net/base/x509_certificate_ios.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/x509_certificate.h
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h
index c8ba0bf61f32584bbde1820d6632005647acc356..1bd6a4b2bb3c77af6a85e13857eabd73f24a1508 100644
--- a/net/base/x509_certificate.h
+++ b/net/base/x509_certificate.h
@@ -304,6 +304,10 @@ class NET_EXPORT X509Certificate
CFArrayRef CreateOSCertChainForCert() const;
#endif
+ // Do any of the given issuer names appear in this cert's chain of trust?
+ // |valid_issuers| is a list of DER-encoded X.509 DistinguishedNames.
+ bool IsIssuedByEncoded(const std::vector<std::string>& valid_issuers);
+
#if defined(OS_WIN)
// Returns a new PCCERT_CONTEXT containing this certificate and its
// intermediate certificates, or NULL on failure. The returned
« no previous file with comments | « no previous file | net/base/x509_certificate_ios.cc » ('j') | net/base/x509_certificate_ios.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698