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

Side by Side Diff: net/quic/quic_crypto_server_stream.h

Issue 1904213002: QUIC: support diversified keys with version 33. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hkdf
Patch Set: Rebase Created 4 years, 7 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/quic_crypto_client_stream.cc ('k') | net/quic/quic_crypto_server_stream.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 (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 #ifndef NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void SetPeerSupportsStatelessRejects( 114 void SetPeerSupportsStatelessRejects(
115 bool peer_supports_stateless_rejects) override; 115 bool peer_supports_stateless_rejects) override;
116 void SetPreviousCachedNetworkParams( 116 void SetPreviousCachedNetworkParams(
117 CachedNetworkParameters cached_network_params) override; 117 CachedNetworkParameters cached_network_params) override;
118 118
119 protected: 119 protected:
120 virtual QuicErrorCode ProcessClientHello( 120 virtual QuicErrorCode ProcessClientHello(
121 const CryptoHandshakeMessage& message, 121 const CryptoHandshakeMessage& message,
122 const ValidateClientHelloResultCallback::Result& result, 122 const ValidateClientHelloResultCallback::Result& result,
123 CryptoHandshakeMessage* reply, 123 CryptoHandshakeMessage* reply,
124 DiversificationNonce* out_diversification_nonce,
124 std::string* error_details); 125 std::string* error_details);
125 126
126 // Hook that allows the server to set QuicConfig defaults just 127 // Hook that allows the server to set QuicConfig defaults just
127 // before going through the parameter negotiation step. 128 // before going through the parameter negotiation step.
128 virtual void OverrideQuicConfigDefaults(QuicConfig* config); 129 virtual void OverrideQuicConfigDefaults(QuicConfig* config);
129 130
130 // Given the current connection_id, generates a new ConnectionId to 131 // Given the current connection_id, generates a new ConnectionId to
131 // be returned with a stateless reject. 132 // be returned with a stateless reject.
132 virtual QuicConnectionId GenerateConnectionIdForReject( 133 virtual QuicConnectionId GenerateConnectionIdForReject(
133 QuicConnectionId connection_id); 134 QuicConnectionId connection_id);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // TODO(jokulik): Remove once client stateless reject support 211 // TODO(jokulik): Remove once client stateless reject support
211 // becomes the default. 212 // becomes the default.
212 bool peer_supports_stateless_rejects_; 213 bool peer_supports_stateless_rejects_;
213 214
214 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); 215 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream);
215 }; 216 };
216 217
217 } // namespace net 218 } // namespace net
218 219
219 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 220 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | net/quic/quic_crypto_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698