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

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

Issue 22647002: Add support to QUIC for QUIC_VERSION_8: for RSA-PSS signatures, set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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 | Annotate | Revision Log
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 "net/base/completion_callback.h" 7 #include "net/base/completion_callback.h"
8 #include "net/base/net_errors.h" 8 #include "net/base/net_errors.h"
9 #include "net/cert/cert_verify_result.h" 9 #include "net/cert/cert_verify_result.h"
10 #include "net/cert/x509_certificate.h" 10 #include "net/cert/x509_certificate.h"
11 #include "net/quic/crypto/proof_verifier.h" 11 #include "net/quic/crypto/proof_verifier.h"
12 #include "net/tools/flip_server/balsa_headers.h" 12 #include "net/tools/flip_server/balsa_headers.h"
13 #include "net/tools/quic/quic_epoll_connection_helper.h" 13 #include "net/tools/quic/quic_epoll_connection_helper.h"
14 #include "net/tools/quic/test_tools/http_message_test_utils.h" 14 #include "net/tools/quic/test_tools/http_message_test_utils.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 using std::string; 17 using std::string;
18 using std::vector; 18 using std::vector;
19 using base::StringPiece; 19 using base::StringPiece;
20 20
21 namespace { 21 namespace {
22 22
23 // RecordingProofVerifier accepts any certificate chain and records the common 23 // RecordingProofVerifier accepts any certificate chain and records the common
24 // name of the leaf. 24 // name of the leaf.
25 class RecordingProofVerifier : public net::ProofVerifier { 25 class RecordingProofVerifier : public net::ProofVerifier {
26 public: 26 public:
27 // ProofVerifier interface. 27 // ProofVerifier interface.
28 virtual net::ProofVerifier::Status VerifyProof( 28 virtual net::ProofVerifier::Status VerifyProof(
29 net::QuicVersion version,
29 const string& hostname, 30 const string& hostname,
30 const string& server_config, 31 const string& server_config,
31 const vector<string>& certs, 32 const vector<string>& certs,
32 const string& signature, 33 const string& signature,
33 string* error_details, 34 string* error_details,
34 scoped_ptr<net::ProofVerifyDetails>* details, 35 scoped_ptr<net::ProofVerifyDetails>* details,
35 net::ProofVerifierCallback* callback) OVERRIDE { 36 net::ProofVerifierCallback* callback) OVERRIDE {
36 delete callback; 37 delete callback;
37 38
38 common_name_.clear(); 39 common_name_.clear();
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 } 333 }
333 334
334 void QuicTestClient::UseWriter(QuicTestWriter* writer) { 335 void QuicTestClient::UseWriter(QuicTestWriter* writer) {
335 DCHECK(!connected()); 336 DCHECK(!connected());
336 reinterpret_cast<QuicEpollClient*>(client_.get())->UseWriter(writer); 337 reinterpret_cast<QuicEpollClient*>(client_.get())->UseWriter(writer);
337 } 338 }
338 339
339 } // namespace test 340 } // namespace test
340 } // namespace tools 341 } // namespace tools
341 } // namespace net 342 } // namespace net
OLDNEW
« net/quic/crypto/proof_verifier_chromium.cc ('K') | « net/quic/quic_protocol_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698