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 #include "net/tools/cert_verify_tool/verify_using_path_builder.h" | 5 #include "net/tools/cert_verify_tool/verify_using_path_builder.h" |
6 | 6 |
7 #include <iostream> | 7 #include <iostream> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
12 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
13 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
14 #include "crypto/sha2.h" | 15 #include "crypto/sha2.h" |
15 #include "net/cert/cert_net_fetcher.h" | 16 #include "net/cert/cert_net_fetcher.h" |
16 #include "net/cert/internal/cert_issuer_source_aia.h" | 17 #include "net/cert/internal/cert_issuer_source_aia.h" |
17 #include "net/cert/internal/cert_issuer_source_static.h" | 18 #include "net/cert/internal/cert_issuer_source_static.h" |
18 #include "net/cert/internal/parse_name.h" | 19 #include "net/cert/internal/parse_name.h" |
19 #include "net/cert/internal/parsed_certificate.h" | 20 #include "net/cert/internal/parsed_certificate.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 if (!DumpParsedCertificateChain( | 260 if (!DumpParsedCertificateChain( |
260 dump_prefix_path.AddExtension( | 261 dump_prefix_path.AddExtension( |
261 FILE_PATH_LITERAL(".CertPathBuilder.pem")), | 262 FILE_PATH_LITERAL(".CertPathBuilder.pem")), |
262 result.paths[result.best_result_index]->path)) { | 263 result.paths[result.best_result_index]->path)) { |
263 return false; | 264 return false; |
264 } | 265 } |
265 } | 266 } |
266 | 267 |
267 return result.HasValidPath(); | 268 return result.HasValidPath(); |
268 } | 269 } |
OLD | NEW |