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

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 X509CertificateTest.IsIssuedByEncoded unit test Created 7 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: 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

Powered by Google App Engine
This is Rietveld 408576698