Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: net/quic/crypto/quic_crypto_server_config.h

Issue 497553004: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with TOT Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/quic/crypto/quic_crypto_server_config.h
diff --git a/net/quic/crypto/quic_crypto_server_config.h b/net/quic/crypto/quic_crypto_server_config.h
index 9ec0612ea38d18fbe476f5678b3196a16792559e..faec4a17cf057caed15060c418f49dacb0e7d284 100644
--- a/net/quic/crypto/quic_crypto_server_config.h
+++ b/net/quic/crypto/quic_crypto_server_config.h
@@ -19,6 +19,7 @@
#include "net/quic/crypto/crypto_handshake_message.h"
#include "net/quic/crypto/crypto_protocol.h"
#include "net/quic/crypto/crypto_secret_boxer.h"
+#include "net/quic/crypto/source_address_token.h"
#include "net/quic/quic_time.h"
namespace net {
@@ -211,11 +212,18 @@ class NET_EXPORT_PRIVATE QuicCryptoServerConfig {
CryptoHandshakeMessage* out,
std::string* error_details) const;
+ // BuildServerConfigUpdateMessage sets |out| to be a SCUP message containing
+ // the current primary config, an up to date source-address token, and cert
+ // chain and proof in the case of secure QUIC. Returns true if successfully
+ // filled |out|.
+ //
+ // |cached_network_params| is optional, and can be NULL.
bool BuildServerConfigUpdateMessage(
const IPEndPoint& client_ip,
const QuicClock* clock,
QuicRandom* rand,
const QuicCryptoNegotiatedParameters& params,
+ const CachedNetworkParameters* cached_network_params,
CryptoHandshakeMessage* out) const;
// SetProofSource installs |proof_source| as the ProofSource for handshakes.
@@ -388,11 +396,13 @@ class NET_EXPORT_PRIVATE QuicCryptoServerConfig {
scoped_refptr<Config> ParseConfigProtobuf(QuicServerConfigProtobuf* protobuf);
// NewSourceAddressToken returns a fresh source address token for the given
- // IP address.
- std::string NewSourceAddressToken(const Config& config,
- const IPEndPoint& ip,
- QuicRandom* rand,
- QuicWallTime now) const;
+ // IP address. |cached_network_params| is optional, and can be NULL.
+ std::string NewSourceAddressToken(
+ const Config& config,
+ const IPEndPoint& ip,
+ QuicRandom* rand,
+ QuicWallTime now,
+ const CachedNetworkParameters* cached_network_params) const;
// ValidateSourceAddressToken returns HANDSHAKE_OK if the source address token
// in |token| is a valid and timely token for the IP address |ip| given that
« no previous file with comments | « net/quic/congestion_control/timestamp_receiver_test.cc ('k') | net/quic/crypto/quic_crypto_server_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698