OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TOOLS_CERT_VERIFY_TOOL_VERIFY_USING_CERT_VERIFY_PROC_H_ | 5 #ifndef NET_TOOLS_CERT_VERIFY_TOOL_VERIFY_USING_PATH_BUILDER_H_ |
6 #define NET_TOOLS_CERT_VERIFY_TOOL_VERIFY_USING_CERT_VERIFY_PROC_H_ | 6 #define NET_TOOLS_CERT_VERIFY_TOOL_VERIFY_USING_PATH_BUILDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 namespace base { | 11 namespace base { |
12 class FilePath; | 12 class FilePath; |
| 13 class Time; |
13 } | 14 } |
14 | 15 |
15 struct CertInput; | 16 struct CertInput; |
16 | 17 |
17 // Verifies |target_der_cert| using CertVerifyProc. Returns true if the | 18 // Verifies |target_der_cert| using CertPathBuilder. Returns true if the |
18 // certificate verified successfully, false if it failed to verify or there was | 19 // certificate verified successfully, false if it failed to verify or there was |
19 // some other error. | 20 // some other error. |
20 // Informational messages will be printed to stdout/stderr as appropriate. | 21 // Informational messages will be printed to stdout/stderr as appropriate. |
21 bool VerifyUsingCertVerifyProc( | 22 bool VerifyUsingPathBuilder( |
22 const CertInput& target_der_cert, | 23 const CertInput& target_der_cert, |
23 const std::string& hostname, | |
24 const std::vector<CertInput>& intermediate_der_certs, | 24 const std::vector<CertInput>& intermediate_der_certs, |
25 const std::vector<CertInput>& root_der_certs, | 25 const std::vector<CertInput>& root_der_certs, |
| 26 const base::Time at_time, |
26 const base::FilePath& dump_prefix_path); | 27 const base::FilePath& dump_prefix_path); |
27 | 28 |
28 #endif // NET_TOOLS_CERT_VERIFY_TOOL_VERIFY_USING_CERT_VERIFY_PROC_H_ | 29 #endif // NET_TOOLS_CERT_VERIFY_TOOL_VERIFY_USING_PATH_BUILDER_H_ |
OLD | NEW |