diff options
Diffstat (limited to 'net/base/x509_certificate.h')
-rw-r--r-- | net/base/x509_certificate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h index 62c847f..625be62 100644 --- a/net/base/x509_certificate.h +++ b/net/base/x509_certificate.h @@ -404,6 +404,11 @@ class X509Certificate : public base::RefCountedThreadSafe<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, |