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

Unified Diff: net/base/x509_certificate.h

Issue 7795014: Mark DigiNotar as untrusted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 4 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
« no previous file with comments | « net/base/ev_root_ca_metadata.cc ('k') | net/base/x509_certificate.cc » ('j') | no next file with comments »
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 4c8dd01a99e7cb5dd6da227f5fd51b7f1f13f176..3155b43af112680614d13cece1952983517c3348 100644
--- a/net/base/x509_certificate.h
+++ b/net/base/x509_certificate.h
@@ -428,6 +428,11 @@ class NET_EXPORT X509Certificate
// IsBlacklisted returns true if this certificate is explicitly blacklisted.
bool IsBlacklisted() const;
+ // IsPublicKeyBlacklisted returns true iff one of |public_key_hashes| (which
+ // are SHA1 hashes of SubjectPublicKeyInfo structures) is explicitly blocked.
+ static bool IsPublicKeyBlacklisted(
+ const std::vector<SHA1Fingerprint>& public_key_hashes);
+
// IsSHA1HashInSortedArray returns true iff |hash| is in |array|, a sorted
// array of SHA1 hashes.
static bool IsSHA1HashInSortedArray(const SHA1Fingerprint& hash,
« no previous file with comments | « net/base/ev_root_ca_metadata.cc ('k') | net/base/x509_certificate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698