Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: net/tools/cert_verify_tool/verify_using_path_builder.h

Issue 2130453003: cert_verify_tool: Verify using the new pathbuilder too. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert-parsing-path-building
Patch Set: changes for comment #3 Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « net/tools/cert_verify_tool/cert_verify_tool.cc ('k') | net/tools/cert_verify_tool/verify_using_path_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698