OLD | NEW |
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_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 5 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 // accept. |preferred_version| is the version of the QUIC protocol that this | 245 // accept. |preferred_version| is the version of the QUIC protocol that this |
246 // client chose to use initially. This allows the server to detect downgrade | 246 // client chose to use initially. This allows the server to detect downgrade |
247 // attacks. | 247 // attacks. |
248 // | 248 // |
249 // If |channel_id_key| is not null, it is used to sign a secret value derived | 249 // If |channel_id_key| is not null, it is used to sign a secret value derived |
250 // from the client and server's keys, and the Channel ID public key and the | 250 // from the client and server's keys, and the Channel ID public key and the |
251 // signature are placed in the CETV value of the CHLO. | 251 // signature are placed in the CETV value of the CHLO. |
252 QuicErrorCode FillClientHello( | 252 QuicErrorCode FillClientHello( |
253 const QuicServerId& server_id, | 253 const QuicServerId& server_id, |
254 QuicConnectionId connection_id, | 254 QuicConnectionId connection_id, |
255 const QuicVersion actual_version, | |
256 const QuicVersion preferred_version, | 255 const QuicVersion preferred_version, |
257 const CachedState* cached, | 256 const CachedState* cached, |
258 QuicWallTime now, | 257 QuicWallTime now, |
259 QuicRandom* rand, | 258 QuicRandom* rand, |
260 const ChannelIDKey* channel_id_key, | 259 const ChannelIDKey* channel_id_key, |
261 scoped_refptr<QuicCryptoNegotiatedParameters> out_params, | 260 scoped_refptr<QuicCryptoNegotiatedParameters> out_params, |
262 CryptoHandshakeMessage* out, | 261 CryptoHandshakeMessage* out, |
263 std::string* error_details) const; | 262 std::string* error_details) const; |
264 | 263 |
265 // ProcessRejection processes a REJ message from a server and updates the | 264 // ProcessRejection processes a REJ message from a server and updates the |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 384 |
386 // The |user_agent_id_| passed in QUIC's CHLO message. | 385 // The |user_agent_id_| passed in QUIC's CHLO message. |
387 std::string user_agent_id_; | 386 std::string user_agent_id_; |
388 | 387 |
389 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); | 388 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); |
390 }; | 389 }; |
391 | 390 |
392 } // namespace net | 391 } // namespace net |
393 | 392 |
394 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 393 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
OLD | NEW |