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

Side by Side Diff: net/tools/quic/test_tools/quic_test_client.cc

Issue 2210693002: Revert of QUIC - Race Cert Verification with host resolution if certs are (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 (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
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
110 const string& common_name() const { return common_name_; } 100 const string& common_name() const { return common_name_; }
111 101
112 const string& cert_sct() const { return cert_sct_; } 102 const string& cert_sct() const { return cert_sct_; }
113 103
114 private: 104 private:
115 std::unique_ptr<ProofVerifier> verifier_; 105 std::unique_ptr<ProofVerifier> verifier_;
116 string common_name_; 106 string common_name_;
117 string cert_sct_; 107 string cert_sct_;
118 }; 108 };
119 109
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 CHECK(message); 723 CHECK(message);
734 message->headers()->SetRequestVersion( 724 message->headers()->SetRequestVersion(
735 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); 725 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1));
736 message->headers()->SetRequestMethod( 726 message->headers()->SetRequestMethod(
737 HTTPMessage::MethodToString(HttpConstants::GET)); 727 HTTPMessage::MethodToString(HttpConstants::GET));
738 message->headers()->SetRequestUri(uri); 728 message->headers()->SetRequestUri(uri);
739 } 729 }
740 730
741 } // namespace test 731 } // namespace test
742 } // namespace net 732 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_stream_factory_peer.cc ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698