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

Side by Side Diff: net/quic/crypto/proof_verifier.h

Issue 1765603002: Add QUIC 31 in which the server's proof covers both the static server config as well as a hash of t… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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/quic/crypto/proof_test.cc ('k') | net/quic/crypto/proof_verifier_chromium.h » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_H_ 5 #ifndef NET_QUIC_CRYPTO_PROOF_VERIFIER_H_
6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ 6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 #include "net/quic/quic_protocol.h"
13 #include "net/quic/quic_types.h" 14 #include "net/quic/quic_types.h"
14 15
15 namespace net { 16 namespace net {
16 17
17 // ProofVerifyDetails is an abstract class that acts as a container for any 18 // ProofVerifyDetails is an abstract class that acts as a container for any
18 // implementation specific details that a ProofVerifier wishes to return. These 19 // implementation specific details that a ProofVerifier wishes to return. These
19 // details are saved in the CachedState for the origin in question. 20 // details are saved in the CachedState for the origin in question.
20 class NET_EXPORT_PRIVATE ProofVerifyDetails { 21 class NET_EXPORT_PRIVATE ProofVerifyDetails {
21 public: 22 public:
22 virtual ~ProofVerifyDetails() {} 23 virtual ~ProofVerifyDetails() {}
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // verifier, e.g. logging handles. 69 // verifier, e.g. logging handles.
69 // 70 //
70 // This function may also return QUIC_PENDING, in which case the ProofVerifier 71 // This function may also return QUIC_PENDING, in which case the ProofVerifier
71 // will call back, on the original thread, via |callback| when complete. 72 // will call back, on the original thread, via |callback| when complete.
72 // In this case, the ProofVerifier will take ownership of |callback|. 73 // In this case, the ProofVerifier will take ownership of |callback|.
73 // 74 //
74 // The signature uses SHA-256 as the hash function and PSS padding in the 75 // The signature uses SHA-256 as the hash function and PSS padding in the
75 // case of RSA. 76 // case of RSA.
76 virtual QuicAsyncStatus VerifyProof(const std::string& hostname, 77 virtual QuicAsyncStatus VerifyProof(const std::string& hostname,
77 const std::string& server_config, 78 const std::string& server_config,
79 QuicVersion quic_version,
80 base::StringPiece chlo_hash,
78 const std::vector<std::string>& certs, 81 const std::vector<std::string>& certs,
79 const std::string& cert_sct, 82 const std::string& cert_sct,
80 const std::string& signature, 83 const std::string& signature,
81 const ProofVerifyContext* context, 84 const ProofVerifyContext* context,
82 std::string* error_details, 85 std::string* error_details,
83 scoped_ptr<ProofVerifyDetails>* details, 86 scoped_ptr<ProofVerifyDetails>* details,
84 ProofVerifierCallback* callback) = 0; 87 ProofVerifierCallback* callback) = 0;
85 }; 88 };
86 89
87 } // namespace net 90 } // namespace net
88 91
89 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_H_ 92 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/proof_test.cc ('k') | net/quic/crypto/proof_verifier_chromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698