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

Unified Diff: net/quic/crypto/crypto_handshake.cc

Issue 23766019: QuicCryptoClientConfig::ProcessServerHello should learn about updated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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
« no previous file with comments | « net/quic/crypto/crypto_handshake.h ('k') | net/quic/quic_crypto_client_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/crypto_handshake.cc
===================================================================
--- net/quic/crypto/crypto_handshake.cc (revision 221812)
+++ net/quic/crypto/crypto_handshake.cc (working copy)
@@ -792,9 +792,9 @@
}
QuicErrorCode QuicCryptoClientConfig::ProcessRejection(
- CachedState* cached,
const CryptoHandshakeMessage& rej,
QuicWallTime now,
+ CachedState* cached,
QuicCryptoNegotiatedParameters* out_params,
string* error_details) {
DCHECK(error_details != NULL);
@@ -856,6 +856,7 @@
QuicErrorCode QuicCryptoClientConfig::ProcessServerHello(
const CryptoHandshakeMessage& server_hello,
QuicGuid guid,
+ CachedState* cached,
QuicCryptoNegotiatedParameters* out_params,
string* error_details) {
DCHECK(error_details != NULL);
@@ -865,6 +866,12 @@
return QUIC_INVALID_CRYPTO_MESSAGE_TYPE;
}
+ // Learn about updated source address tokens.
+ StringPiece token;
+ if (server_hello.GetStringPiece(kSourceAddressTokenTag, &token)) {
+ cached->set_source_address_token(token);
+ }
+
// TODO(agl):
// learn about updated SCFGs.
« no previous file with comments | « net/quic/crypto/crypto_handshake.h ('k') | net/quic/quic_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698