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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 CryptoHandshakeMessage* out) const; | 156 CryptoHandshakeMessage* out) const; |
157 | 157 |
158 // FillClientHello sets |out| to be a CHLO message based on the configuration | 158 // FillClientHello sets |out| to be a CHLO message based on the configuration |
159 // of this object. This object must have cached enough information about | 159 // of this object. This object must have cached enough information about |
160 // the server's hostname in order to perform a handshake. This can be checked | 160 // the server's hostname in order to perform a handshake. This can be checked |
161 // with the |IsComplete| member of |CachedState|. | 161 // with the |IsComplete| member of |CachedState|. |
162 // | 162 // |
163 // |initial_flow_control_window_bytes| is the size of the initial flow | 163 // |initial_flow_control_window_bytes| is the size of the initial flow |
164 // control window this client will use for new streams. | 164 // control window this client will use for new streams. |
165 // | 165 // |
166 // |clock| and |rand| are used to generate the nonce and |out_params| is | 166 // |now| and |rand| are used to generate the nonce and |out_params| is |
167 // filled with the results of the handshake that the server is expected to | 167 // filled with the results of the handshake that the server is expected to |
168 // accept. |preferred_version| is the version of the QUIC protocol that this | 168 // accept. |preferred_version| is the version of the QUIC protocol that this |
169 // client chose to use initially. This allows the server to detect downgrade | 169 // client chose to use initially. This allows the server to detect downgrade |
170 // attacks. | 170 // attacks. |
171 QuicErrorCode FillClientHello(const QuicServerId& server_id, | 171 QuicErrorCode FillClientHello(const QuicServerId& server_id, |
172 QuicConnectionId connection_id, | 172 QuicConnectionId connection_id, |
173 const QuicVersion preferred_version, | 173 const QuicVersion preferred_version, |
174 uint32 initial_flow_control_window_bytes, | 174 uint32 initial_flow_control_window_bytes, |
175 const CachedState* cached, | 175 const CachedState* cached, |
176 QuicWallTime now, | 176 QuicWallTime now, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 // True if ECDSA should be disabled. | 273 // True if ECDSA should be disabled. |
274 bool disable_ecdsa_; | 274 bool disable_ecdsa_; |
275 | 275 |
276 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); | 276 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); |
277 }; | 277 }; |
278 | 278 |
279 } // namespace net | 279 } // namespace net |
280 | 280 |
281 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 281 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
OLD | NEW |