OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_CERT_CERT_VERIFY_PROC_H_ | 5 #ifndef NET_CERT_CERT_VERIFY_PROC_H_ |
6 #define NET_CERT_CERT_VERIFY_PROC_H_ | 6 #define NET_CERT_CERT_VERIFY_PROC_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 CRLSet* crl_set, | 82 CRLSet* crl_set, |
83 const CertificateList& additional_trust_anchors, | 83 const CertificateList& additional_trust_anchors, |
84 CertVerifyResult* verify_result) = 0; | 84 CertVerifyResult* verify_result) = 0; |
85 | 85 |
86 // Returns true if |cert| is explicitly blacklisted. | 86 // Returns true if |cert| is explicitly blacklisted. |
87 static bool IsBlacklisted(X509Certificate* cert); | 87 static bool IsBlacklisted(X509Certificate* cert); |
88 | 88 |
89 // IsPublicKeyBlacklisted returns true iff one of |public_key_hashes| (which | 89 // IsPublicKeyBlacklisted returns true iff one of |public_key_hashes| (which |
90 // are hashes of SubjectPublicKeyInfo structures) is explicitly blocked. | 90 // are hashes of SubjectPublicKeyInfo structures) is explicitly blocked. |
91 static bool IsPublicKeyBlacklisted(const HashValueVector& public_key_hashes); | 91 static bool IsPublicKeyBlacklisted(const HashValueVector& public_key_hashes); |
| 92 |
| 93 DISALLOW_COPY_AND_ASSIGN(CertVerifyProc); |
92 }; | 94 }; |
93 | 95 |
94 } // namespace net | 96 } // namespace net |
95 | 97 |
96 #endif // NET_CERT_CERT_VERIFY_PROC_H_ | 98 #endif // NET_CERT_CERT_VERIFY_PROC_H_ |
OLD | NEW |