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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // present in a version negotiation packet previously recevied from the | 201 // present in a version negotiation packet previously recevied from the |
202 // server. The contents of this list will be compared against the list of | 202 // server. The contents of this list will be compared against the list of |
203 // versions provided in the VER tag of the server hello. | 203 // versions provided in the VER tag of the server hello. |
204 QuicErrorCode ProcessServerHello(const CryptoHandshakeMessage& server_hello, | 204 QuicErrorCode ProcessServerHello(const CryptoHandshakeMessage& server_hello, |
205 QuicConnectionId connection_id, | 205 QuicConnectionId connection_id, |
206 const QuicVersionVector& negotiated_versions, | 206 const QuicVersionVector& negotiated_versions, |
207 CachedState* cached, | 207 CachedState* cached, |
208 QuicCryptoNegotiatedParameters* out_params, | 208 QuicCryptoNegotiatedParameters* out_params, |
209 std::string* error_details); | 209 std::string* error_details); |
210 | 210 |
| 211 // Processes the message in |server_update|, updating the cached source |
| 212 // address token, and server config. |
| 213 // If |server_update| is invalid then |error_details| will contain an error |
| 214 // message, and an error code will be returned. If all has gone well |
| 215 // QUIC_NO_ERROR is returned. |
| 216 QuicErrorCode ProcessServerConfigUpdate( |
| 217 const CryptoHandshakeMessage& server_update, |
| 218 QuicWallTime now, |
| 219 CachedState* cached, |
| 220 QuicCryptoNegotiatedParameters* out_params, |
| 221 std::string* error_details); |
| 222 |
211 ProofVerifier* proof_verifier() const; | 223 ProofVerifier* proof_verifier() const; |
212 | 224 |
213 // SetProofVerifier takes ownership of a |ProofVerifier| that clients are | 225 // SetProofVerifier takes ownership of a |ProofVerifier| that clients are |
214 // free to use in order to verify certificate chains from servers. If a | 226 // free to use in order to verify certificate chains from servers. If a |
215 // ProofVerifier is set then the client will request a certificate chain from | 227 // ProofVerifier is set then the client will request a certificate chain from |
216 // the server. | 228 // the server. |
217 void SetProofVerifier(ProofVerifier* verifier); | 229 void SetProofVerifier(ProofVerifier* verifier); |
218 | 230 |
219 ChannelIDSource* channel_id_source() const; | 231 ChannelIDSource* channel_id_source() const; |
220 | 232 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 305 |
294 // The |user_agent_id_| passed in QUIC's CHLO message. | 306 // The |user_agent_id_| passed in QUIC's CHLO message. |
295 std::string user_agent_id_; | 307 std::string user_agent_id_; |
296 | 308 |
297 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); | 309 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); |
298 }; | 310 }; |
299 | 311 |
300 } // namespace net | 312 } // namespace net |
301 | 313 |
302 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 314 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
OLD | NEW |