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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // filled with the results of the handshake that the server is expected to | 227 // filled with the results of the handshake that the server is expected to |
228 // accept. |preferred_version| is the version of the QUIC protocol that this | 228 // accept. |preferred_version| is the version of the QUIC protocol that this |
229 // client chose to use initially. This allows the server to detect downgrade | 229 // client chose to use initially. This allows the server to detect downgrade |
230 // attacks. | 230 // attacks. |
231 // | 231 // |
232 // If |channel_id_key| is not null, it is used to sign a secret value derived | 232 // If |channel_id_key| is not null, it is used to sign a secret value derived |
233 // from the client and server's keys, and the Channel ID public key and the | 233 // from the client and server's keys, and the Channel ID public key and the |
234 // signature are placed in the CETV value of the CHLO. | 234 // signature are placed in the CETV value of the CHLO. |
235 QuicErrorCode FillClientHello(const QuicServerId& server_id, | 235 QuicErrorCode FillClientHello(const QuicServerId& server_id, |
236 QuicConnectionId connection_id, | 236 QuicConnectionId connection_id, |
| 237 const QuicVersion actual_version, |
237 const QuicVersion preferred_version, | 238 const QuicVersion preferred_version, |
238 const CachedState* cached, | 239 const CachedState* cached, |
239 QuicWallTime now, | 240 QuicWallTime now, |
240 QuicRandom* rand, | 241 QuicRandom* rand, |
241 const ChannelIDKey* channel_id_key, | 242 const ChannelIDKey* channel_id_key, |
242 QuicCryptoNegotiatedParameters* out_params, | 243 QuicCryptoNegotiatedParameters* out_params, |
243 CryptoHandshakeMessage* out, | 244 CryptoHandshakeMessage* out, |
244 std::string* error_details) const; | 245 std::string* error_details) const; |
245 | 246 |
246 // ProcessRejection processes a REJ message from a server and updates the | 247 // ProcessRejection processes a REJ message from a server and updates the |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 | 375 |
375 // The |user_agent_id_| passed in QUIC's CHLO message. | 376 // The |user_agent_id_| passed in QUIC's CHLO message. |
376 std::string user_agent_id_; | 377 std::string user_agent_id_; |
377 | 378 |
378 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); | 379 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); |
379 }; | 380 }; |
380 | 381 |
381 } // namespace net | 382 } // namespace net |
382 | 383 |
383 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 384 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
OLD | NEW |