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

Side by Side Diff: net/quic/chromium/crypto/proof_verifier_chromium.h

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: Fix for buildbot failure. 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
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/quic/chromium/crypto/proof_verifier_chromium.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ 5 #ifndef NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_
6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ 6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 const std::string& server_config, 78 const std::string& server_config,
79 QuicVersion quic_version, 79 QuicVersion quic_version,
80 base::StringPiece chlo_hash, 80 base::StringPiece chlo_hash,
81 const std::vector<std::string>& certs, 81 const std::vector<std::string>& certs,
82 const std::string& cert_sct, 82 const std::string& cert_sct,
83 const std::string& signature, 83 const std::string& signature,
84 const ProofVerifyContext* verify_context, 84 const ProofVerifyContext* verify_context,
85 std::string* error_details, 85 std::string* error_details,
86 std::unique_ptr<ProofVerifyDetails>* verify_details, 86 std::unique_ptr<ProofVerifyDetails>* verify_details,
87 std::unique_ptr<ProofVerifierCallback> callback) override; 87 std::unique_ptr<ProofVerifierCallback> callback) override;
88 QuicAsyncStatus VerifyCertChain(
89 const std::string& hostname,
90 const std::vector<std::string>& certs,
91 const ProofVerifyContext* verify_context,
92 std::string* error_details,
93 std::unique_ptr<ProofVerifyDetails>* verify_details,
94 std::unique_ptr<ProofVerifierCallback> callback) override;
88 95
89 private: 96 private:
90 class Job; 97 class Job;
91 typedef std::set<Job*> JobSet; 98 typedef std::set<Job*> JobSet;
92 99
93 void OnJobComplete(Job* job); 100 void OnJobComplete(Job* job);
94 101
95 // Set owning pointers to active jobs. 102 // Set owning pointers to active jobs.
96 JobSet active_jobs_; 103 JobSet active_jobs_;
97 104
98 // Underlying verifier used to verify certificates. 105 // Underlying verifier used to verify certificates.
99 CertVerifier* const cert_verifier_; 106 CertVerifier* const cert_verifier_;
100 CTPolicyEnforcer* const ct_policy_enforcer_; 107 CTPolicyEnforcer* const ct_policy_enforcer_;
101 108
102 TransportSecurityState* const transport_security_state_; 109 TransportSecurityState* const transport_security_state_;
103 CTVerifier* const cert_transparency_verifier_; 110 CTVerifier* const cert_transparency_verifier_;
104 111
105 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium); 112 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);
106 }; 113 };
107 114
108 } // namespace net 115 } // namespace net
109 116
110 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ 117 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/quic/chromium/crypto/proof_verifier_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698