| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 std::string* error_details) const; | 290 std::string* error_details) const; |
| 291 | 291 |
| 292 // BuildServerConfigUpdateMessage sets |out| to be a SCUP message containing | 292 // BuildServerConfigUpdateMessage sets |out| to be a SCUP message containing |
| 293 // the current primary config, an up to date source-address token, and cert | 293 // the current primary config, an up to date source-address token, and cert |
| 294 // chain and proof in the case of secure QUIC. Returns true if successfully | 294 // chain and proof in the case of secure QUIC. Returns true if successfully |
| 295 // filled |out|. | 295 // filled |out|. |
| 296 // | 296 // |
| 297 // |cached_network_params| is optional, and can be nullptr. | 297 // |cached_network_params| is optional, and can be nullptr. |
| 298 bool BuildServerConfigUpdateMessage( | 298 bool BuildServerConfigUpdateMessage( |
| 299 QuicVersion version, | 299 QuicVersion version, |
| 300 base::StringPiece chlo_hash, |
| 300 const SourceAddressTokens& previous_source_address_tokens, | 301 const SourceAddressTokens& previous_source_address_tokens, |
| 301 const IPAddress& server_ip, | 302 const IPAddress& server_ip, |
| 302 const IPAddress& client_ip, | 303 const IPAddress& client_ip, |
| 303 const QuicClock* clock, | 304 const QuicClock* clock, |
| 304 QuicRandom* rand, | 305 QuicRandom* rand, |
| 305 QuicCompressedCertsCache* compressed_certs_cache, | 306 QuicCompressedCertsCache* compressed_certs_cache, |
| 306 const QuicCryptoNegotiatedParameters& params, | 307 const QuicCryptoNegotiatedParameters& params, |
| 307 const CachedNetworkParameters* cached_network_params, | 308 const CachedNetworkParameters* cached_network_params, |
| 308 CryptoHandshakeMessage* out) const; | 309 CryptoHandshakeMessage* out) const; |
| 309 | 310 |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 std::string cert_sct; | 666 std::string cert_sct; |
| 666 // The server config that is used for this proof (and the rest of the | 667 // The server config that is used for this proof (and the rest of the |
| 667 // request). | 668 // request). |
| 668 scoped_refptr<QuicCryptoServerConfig::Config> config; | 669 scoped_refptr<QuicCryptoServerConfig::Config> config; |
| 669 std::string primary_scid; | 670 std::string primary_scid; |
| 670 }; | 671 }; |
| 671 | 672 |
| 672 } // namespace net | 673 } // namespace net |
| 673 | 674 |
| 674 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ | 675 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ |
| OLD | NEW |