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_SERVER_CONFIG_H_ | 5 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ |
6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ | 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // nonce when we send a rejection. After a successful handshake, this will | 197 // nonce when we send a rejection. After a successful handshake, this will |
198 // contain the state of the connection. | 198 // contain the state of the connection. |
199 // out: the resulting handshake message (either REJ or SHLO) | 199 // out: the resulting handshake message (either REJ or SHLO) |
200 // error_details: used to store a string describing any error. | 200 // error_details: used to store a string describing any error. |
201 QuicErrorCode ProcessClientHello( | 201 QuicErrorCode ProcessClientHello( |
202 const ValidateClientHelloResultCallback::Result& validate_chlo_result, | 202 const ValidateClientHelloResultCallback::Result& validate_chlo_result, |
203 QuicConnectionId connection_id, | 203 QuicConnectionId connection_id, |
204 IPEndPoint client_address, | 204 IPEndPoint client_address, |
205 QuicVersion version, | 205 QuicVersion version, |
206 const QuicVersionVector& supported_versions, | 206 const QuicVersionVector& supported_versions, |
207 uint32 initial_flow_control_window_bytes, | |
208 const QuicClock* clock, | 207 const QuicClock* clock, |
209 QuicRandom* rand, | 208 QuicRandom* rand, |
210 QuicCryptoNegotiatedParameters* params, | 209 QuicCryptoNegotiatedParameters* params, |
211 CryptoHandshakeMessage* out, | 210 CryptoHandshakeMessage* out, |
212 std::string* error_details) const; | 211 std::string* error_details) const; |
213 | 212 |
214 // SetProofSource installs |proof_source| as the ProofSource for handshakes. | 213 // SetProofSource installs |proof_source| as the ProofSource for handshakes. |
215 // This object takes ownership of |proof_source|. | 214 // This object takes ownership of |proof_source|. |
216 void SetProofSource(ProofSource* proof_source); | 215 void SetProofSource(ProofSource* proof_source); |
217 | 216 |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 uint32 source_address_token_lifetime_secs_; | 468 uint32 source_address_token_lifetime_secs_; |
470 uint32 server_nonce_strike_register_max_entries_; | 469 uint32 server_nonce_strike_register_max_entries_; |
471 uint32 server_nonce_strike_register_window_secs_; | 470 uint32 server_nonce_strike_register_window_secs_; |
472 | 471 |
473 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerConfig); | 472 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerConfig); |
474 }; | 473 }; |
475 | 474 |
476 } // namespace net | 475 } // namespace net |
477 | 476 |
478 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ | 477 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ |
OLD | NEW |