| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/quic/test_tools/quic_test_client.h" | 5 #include "net/tools/quic/test_tools/quic_test_client.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 if (!verifier_) { | 91 if (!verifier_) { |
| 92 return QUIC_SUCCESS; | 92 return QUIC_SUCCESS; |
| 93 } | 93 } |
| 94 | 94 |
| 95 return verifier_->VerifyProof( | 95 return verifier_->VerifyProof( |
| 96 hostname, port, server_config, quic_version, chlo_hash, certs, cert_sct, | 96 hostname, port, server_config, quic_version, chlo_hash, certs, cert_sct, |
| 97 signature, context, error_details, details, std::move(callback)); | 97 signature, context, error_details, details, std::move(callback)); |
| 98 } | 98 } |
| 99 | 99 |
| 100 QuicAsyncStatus VerifyCertChain( |
| 101 const std::string& hostname, |
| 102 const std::vector<std::string>& certs, |
| 103 const ProofVerifyContext* verify_context, |
| 104 std::string* error_details, |
| 105 std::unique_ptr<ProofVerifyDetails>* verify_details, |
| 106 std::unique_ptr<ProofVerifierCallback> callback) override { |
| 107 return QUIC_SUCCESS; |
| 108 } |
| 109 |
| 100 const string& common_name() const { return common_name_; } | 110 const string& common_name() const { return common_name_; } |
| 101 | 111 |
| 102 const string& cert_sct() const { return cert_sct_; } | 112 const string& cert_sct() const { return cert_sct_; } |
| 103 | 113 |
| 104 private: | 114 private: |
| 105 std::unique_ptr<ProofVerifier> verifier_; | 115 std::unique_ptr<ProofVerifier> verifier_; |
| 106 string common_name_; | 116 string common_name_; |
| 107 string cert_sct_; | 117 string cert_sct_; |
| 108 }; | 118 }; |
| 109 | 119 |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 CHECK(message); | 733 CHECK(message); |
| 724 message->headers()->SetRequestVersion( | 734 message->headers()->SetRequestVersion( |
| 725 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); | 735 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); |
| 726 message->headers()->SetRequestMethod( | 736 message->headers()->SetRequestMethod( |
| 727 HTTPMessage::MethodToString(HttpConstants::GET)); | 737 HTTPMessage::MethodToString(HttpConstants::GET)); |
| 728 message->headers()->SetRequestUri(uri); | 738 message->headers()->SetRequestUri(uri); |
| 729 } | 739 } |
| 730 | 740 |
| 731 } // namespace test | 741 } // namespace test |
| 732 } // namespace net | 742 } // namespace net |
| OLD | NEW |