OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <memory> | 5 #include <memory> |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "net/base/ip_endpoint.h" | 8 #include "net/base/ip_endpoint.h" |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 #include "net/base/test_completion_callback.h" | 10 #include "net/base/test_completion_callback.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 string* leaf_cert_sct) | 112 string* leaf_cert_sct) |
113 : called_(called), | 113 : called_(called), |
114 ok_(ok), | 114 ok_(ok), |
115 chain_(chain), | 115 chain_(chain), |
116 signature_(signature), | 116 signature_(signature), |
117 leaf_cert_sct_(leaf_cert_sct) {} | 117 leaf_cert_sct_(leaf_cert_sct) {} |
118 | 118 |
119 void Run(bool ok, | 119 void Run(bool ok, |
120 const scoped_refptr<ProofSource::Chain>& chain, | 120 const scoped_refptr<ProofSource::Chain>& chain, |
121 const string& signature, | 121 const string& signature, |
122 const string& leaf_cert_sct) override { | 122 const string& leaf_cert_sct, |
| 123 std::unique_ptr<ProofSource::Details> /* details */) override { |
123 *ok_ = ok; | 124 *ok_ = ok; |
124 *chain_ = chain; | 125 *chain_ = chain; |
125 *signature_ = signature; | 126 *signature_ = signature; |
126 *leaf_cert_sct_ = leaf_cert_sct; | 127 *leaf_cert_sct_ = leaf_cert_sct; |
127 *called_ = true; | 128 *called_ = true; |
128 } | 129 } |
129 | 130 |
130 private: | 131 private: |
131 bool* called_; | 132 bool* called_; |
132 bool* ok_; | 133 bool* ok_; |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 for (size_t i = 1; i < certs.size(); i++) { | 477 for (size_t i = 1; i < certs.size(); i++) { |
477 wrong_certs.push_back(certs[i]); | 478 wrong_certs.push_back(certs[i]); |
478 } | 479 } |
479 RunVerification(verifier.get(), hostname, port, server_config, quic_version, | 480 RunVerification(verifier.get(), hostname, port, server_config, quic_version, |
480 chlo_hash, wrong_certs, signature, false); | 481 chlo_hash, wrong_certs, signature, false); |
481 } | 482 } |
482 } | 483 } |
483 | 484 |
484 } // namespace test | 485 } // namespace test |
485 } // namespace net | 486 } // namespace net |
OLD | NEW |