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

Unified Diff: net/quic/quic_crypto_client_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_client_stream.h ('k') | net/quic/quic_crypto_client_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_client_stream.cc
diff --git a/net/quic/quic_crypto_client_stream.cc b/net/quic/quic_crypto_client_stream.cc
index cccbc0acd8c5bfc27cbc965ba1538673d6f5abc9..a84a756d26da4c3a9f899cb0f18d568f98a57d6d 100644
--- a/net/quic/quic_crypto_client_stream.cc
+++ b/net/quic/quic_crypto_client_stream.cc
@@ -16,6 +16,10 @@ QuicCryptoClientStream::QuicCryptoClientStream(QuicSession* session,
: QuicCryptoStream(session),
server_hostname_(server_hostname) {
config_.SetDefaults();
+
+ QuicGuid guid = session->connection()->guid();
+ crypto_config_.hkdf_info.append(reinterpret_cast<char*>(&guid),
+ sizeof(guid));
}
QuicCryptoClientStream::~QuicCryptoClientStream() {
@@ -46,7 +50,7 @@ void QuicCryptoClientStream::OnHandshakeMessage(
}
QuicErrorCode err = crypto_config_.ProcessServerHello(
- message, &crypto_negotiated_params_, &error_details);
+ message, nonce_, &crypto_negotiated_params_, &error_details);
if (err != QUIC_NO_ERROR) {
CloseConnectionWithDetails(err, error_details);
return;
@@ -64,6 +68,8 @@ bool QuicCryptoClientStream::CryptoConnect() {
CryptoHandshakeMessage message;
crypto_config_.FillClientHello(nonce_, server_hostname_, &message);
config_.ToHandshakeMessage(&message);
+ const QuicData& data = message.GetSerialized();
+ crypto_config_.hkdf_info.append(data.data(), data.length());
SendHandshakeMessage(message);
return true;
}
« no previous file with comments | « net/quic/quic_crypto_client_stream.h ('k') | net/quic/quic_crypto_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698