| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 if (!verifier_) { | 93 if (!verifier_) { |
| 94 return QUIC_SUCCESS; | 94 return QUIC_SUCCESS; |
| 95 } | 95 } |
| 96 | 96 |
| 97 return verifier_->VerifyProof( | 97 return verifier_->VerifyProof( |
| 98 hostname, port, server_config, quic_version, chlo_hash, certs, cert_sct, | 98 hostname, port, server_config, quic_version, chlo_hash, certs, cert_sct, |
| 99 signature, context, error_details, details, std::move(callback)); | 99 signature, context, error_details, details, std::move(callback)); |
| 100 } | 100 } |
| 101 | 101 |
| 102 QuicAsyncStatus VerifyCertChain( | |
| 103 const std::string& hostname, | |
| 104 const std::vector<std::string>& certs, | |
| 105 const ProofVerifyContext* verify_context, | |
| 106 std::string* error_details, | |
| 107 std::unique_ptr<ProofVerifyDetails>* verify_details, | |
| 108 std::unique_ptr<ProofVerifierCallback> callback) override { | |
| 109 return QUIC_SUCCESS; | |
| 110 } | |
| 111 | |
| 112 const string& common_name() const { return common_name_; } | 102 const string& common_name() const { return common_name_; } |
| 113 | 103 |
| 114 const string& cert_sct() const { return cert_sct_; } | 104 const string& cert_sct() const { return cert_sct_; } |
| 115 | 105 |
| 116 private: | 106 private: |
| 117 std::unique_ptr<ProofVerifier> verifier_; | 107 std::unique_ptr<ProofVerifier> verifier_; |
| 118 string common_name_; | 108 string common_name_; |
| 119 string cert_sct_; | 109 string cert_sct_; |
| 120 }; | 110 }; |
| 121 | 111 |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 CHECK(message); | 738 CHECK(message); |
| 749 message->headers()->SetRequestVersion( | 739 message->headers()->SetRequestVersion( |
| 750 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); | 740 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); |
| 751 message->headers()->SetRequestMethod( | 741 message->headers()->SetRequestMethod( |
| 752 HTTPMessage::MethodToString(HttpConstants::GET)); | 742 HTTPMessage::MethodToString(HttpConstants::GET)); |
| 753 message->headers()->SetRequestUri(uri); | 743 message->headers()->SetRequestUri(uri); |
| 754 } | 744 } |
| 755 | 745 |
| 756 } // namespace test | 746 } // namespace test |
| 757 } // namespace net | 747 } // namespace net |
| OLD | NEW |