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

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

Issue 333523002: QUIC - added code to read kUAID in the server code from the CHLO (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/quic_crypto_server_config.cc
diff --git a/net/quic/crypto/quic_crypto_server_config.cc b/net/quic/crypto/quic_crypto_server_config.cc
index 52acd43ba9d1b8793f5fd03a128f50e8e88aa152..65db0f54878518cd3c4c6058b6f09d2242fecb92 100644
--- a/net/quic/crypto/quic_crypto_server_config.cc
+++ b/net/quic/crypto/quic_crypto_server_config.cc
@@ -80,6 +80,7 @@ struct ClientHelloInfo {
StringPiece sni;
StringPiece client_nonce;
StringPiece server_nonce;
+ StringPiece user_agent_id;
};
struct ValidateClientHelloResultCallback::Result {
@@ -889,6 +890,8 @@ void QuicCryptoServerConfig::EvaluateClientHello(
return;
}
+ client_hello.GetStringPiece(kUAID, &info->user_agent_id);
+
StringPiece srct;
if (requested_config.get() != NULL &&
client_hello.GetStringPiece(kSourceAddressTokenTag, &srct) &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698