OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ | 5 #ifndef NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ |
6 #define NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ | 6 #define NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | |
14 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
15 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
16 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
17 | 16 |
18 namespace net { | 17 namespace net { |
19 | 18 |
20 namespace der { | 19 namespace der { |
21 class Input; | 20 class Input; |
22 struct GeneralizedTime; | 21 struct GeneralizedTime; |
23 } | 22 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Returns true if the target certificate can be verified. | 77 // Returns true if the target certificate can be verified. |
79 NET_EXPORT bool VerifyCertificateChain(const std::vector<der::Input>& certs_der, | 78 NET_EXPORT bool VerifyCertificateChain(const std::vector<der::Input>& certs_der, |
80 const TrustStore& trust_store, | 79 const TrustStore& trust_store, |
81 const SignaturePolicy* signature_policy, | 80 const SignaturePolicy* signature_policy, |
82 const der::GeneralizedTime& time) | 81 const der::GeneralizedTime& time) |
83 WARN_UNUSED_RESULT; | 82 WARN_UNUSED_RESULT; |
84 | 83 |
85 } // namespace net | 84 } // namespace net |
86 | 85 |
87 #endif // NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ | 86 #endif // NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ |
OLD | NEW |