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_BASE_CERT_VERIFY_PROC_H_ | 5 #ifndef NET_BASE_CERT_VERIFY_PROC_H_ |
6 #define NET_BASE_CERT_VERIFY_PROC_H_ | 6 #define NET_BASE_CERT_VERIFY_PROC_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual int VerifyInternal(X509Certificate* cert, | 68 virtual int VerifyInternal(X509Certificate* cert, |
69 const std::string& hostname, | 69 const std::string& hostname, |
70 int flags, | 70 int flags, |
71 CRLSet* crl_set, | 71 CRLSet* crl_set, |
72 CertVerifyResult* verify_result) = 0; | 72 CertVerifyResult* verify_result) = 0; |
73 | 73 |
74 // Returns true if |cert| is explicitly blacklisted. | 74 // Returns true if |cert| is explicitly blacklisted. |
75 static bool IsBlacklisted(X509Certificate* cert); | 75 static bool IsBlacklisted(X509Certificate* cert); |
76 | 76 |
77 // IsPublicKeyBlacklisted returns true iff one of |public_key_hashes| (which | 77 // IsPublicKeyBlacklisted returns true iff one of |public_key_hashes| (which |
78 // are hashes of SubjectPublicKeyInfo structures) is explicitly blocked. | 78 // are SHA1 hashes of SubjectPublicKeyInfo structures) is explicitly blocked. |
79 static bool IsPublicKeyBlacklisted( | 79 static bool IsPublicKeyBlacklisted( |
80 const std::vector<HashValueVector>& public_key_hashes); | 80 const std::vector<SHA1Fingerprint>& public_key_hashes); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace net | 83 } // namespace net |
84 | 84 |
85 #endif // NET_BASE_CERT_VERIFY_PROC_H_ | 85 #endif // NET_BASE_CERT_VERIFY_PROC_H_ |
OLD | NEW |