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

Unified Diff: net/quic/quic_crypto_server_stream.cc

Issue 12806002: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment fix Created 7 years, 9 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/quic_crypto_server_stream.h ('k') | net/quic/quic_crypto_server_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_crypto_server_stream.cc
diff --git a/net/quic/quic_crypto_server_stream.cc b/net/quic/quic_crypto_server_stream.cc
index 0f4d4f45102b69de0f648582a07f954ab9429491..8fdd9daeb35d54372017acb070dac26cd2e8345f 100644
--- a/net/quic/quic_crypto_server_stream.cc
+++ b/net/quic/quic_crypto_server_stream.cc
@@ -17,6 +17,10 @@ QuicCryptoServerStream::QuicCryptoServerStream(QuicSession* session)
// Use hardcoded crypto parameters for now.
CryptoHandshakeMessage extra_tags;
config_.ToHandshakeMessage(&extra_tags);
+
+ QuicGuid guid = session->connection()->guid();
+ crypto_config_.hkdf_info.append(reinterpret_cast<char*>(&guid),
+ sizeof(guid));
// TODO(agl): AddTestingConfig generates a new, random config. In the future
// this will be replaced with a real source of configs.
scoped_ptr<CryptoTagValueMap> config_tags(
@@ -56,9 +60,8 @@ void QuicCryptoServerStream::OnHandshakeMessage(
CryptoUtils::GenerateNonce(session()->connection()->clock(),
session()->connection()->random_generator(),
&server_nonce_);
- QuicCryptoNegotiatedParams params;
- crypto_config_.ProcessClientHello(message, server_nonce_, &shlo, &params,
- &error_details);
+ crypto_config_.ProcessClientHello(message, server_nonce_, &shlo,
+ &crypto_negotiated_params_, &error_details);
if (!error_details.empty()) {
DLOG(INFO) << "Rejecting CHLO: " << error_details;
}
« no previous file with comments | « net/quic/quic_crypto_server_stream.h ('k') | net/quic/quic_crypto_server_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698