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

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

Issue 2120703003: QUIC - Race Cert Verification with host resolution if certs are (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor optimization, when verifying certs only skip policy checks. Created 4 years, 5 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/time/time.h" 10 #include "base/time/time.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // if (!cert.get()) { 75 // if (!cert.get()) {
76 // return QUIC_FAILURE; 76 // return QUIC_FAILURE;
77 // } 77 // }
78 // 78 //
79 // common_name_ = cert->subject().GetDisplayName(); 79 // common_name_ = cert->subject().GetDisplayName();
80 cert_sct_ = cert_sct; 80 cert_sct_ = cert_sct;
81 81
82 return QUIC_SUCCESS; 82 return QUIC_SUCCESS;
83 } 83 }
84 84
85 QuicAsyncStatus VerifyCertChain(
86 const std::string& hostname,
87 const uint16_t port,
88 const std::vector<std::string>& certs,
89 const ProofVerifyContext* verify_context,
90 std::string* error_details,
91 std::unique_ptr<ProofVerifyDetails>* verify_details,
92 ProofVerifierCallback* callback) override {
93 return QUIC_SUCCESS;
94 }
95
85 const string& common_name() const { return common_name_; } 96 const string& common_name() const { return common_name_; }
86 97
87 const string& cert_sct() const { return cert_sct_; } 98 const string& cert_sct() const { return cert_sct_; }
88 99
89 private: 100 private:
90 string common_name_; 101 string common_name_;
91 string cert_sct_; 102 string cert_sct_;
92 }; 103 };
93 104
94 } // anonymous namespace 105 } // anonymous namespace
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 CHECK(message); 686 CHECK(message);
676 message->headers()->SetRequestVersion( 687 message->headers()->SetRequestVersion(
677 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); 688 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1));
678 message->headers()->SetRequestMethod( 689 message->headers()->SetRequestMethod(
679 HTTPMessage::MethodToString(HttpConstants::GET)); 690 HTTPMessage::MethodToString(HttpConstants::GET));
680 message->headers()->SetRequestUri(uri); 691 message->headers()->SetRequestUri(uri);
681 } 692 }
682 693
683 } // namespace test 694 } // namespace test
684 } // namespace net 695 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698