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