| 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_CERT_CERT_VERIFY_PROC_H_ |
| 6 #define NET_BASE_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 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 14 #include "net/base/x509_cert_types.h" | 14 #include "net/cert/x509_cert_types.h" |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 | 17 |
| 18 class CertVerifyResult; | 18 class CertVerifyResult; |
| 19 class CRLSet; | 19 class CRLSet; |
| 20 class X509Certificate; | 20 class X509Certificate; |
| 21 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; | 21 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; |
| 22 | 22 |
| 23 // Class to perform certificate path building and verification for various | 23 // Class to perform certificate path building and verification for various |
| 24 // certificate uses. All methods of this class must be thread-safe, as they | 24 // certificate uses. All methods of this class must be thread-safe, as they |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace net | 94 } // namespace net |
| 95 | 95 |
| 96 #endif // NET_BASE_CERT_VERIFY_PROC_H_ | 96 #endif // NET_CERT_CERT_VERIFY_PROC_H_ |
| OLD | NEW |