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

Unified Diff: net/quic/quic_crypto_client_stream.cc

Issue 11633030: Send the ClientHello handshake message. Fix a bug in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/quic_crypto_client_stream.cc
===================================================================
--- net/quic/quic_crypto_client_stream.cc (revision 174485)
+++ net/quic/quic_crypto_client_stream.cc (working copy)
@@ -5,7 +5,9 @@
#include "net/quic/quic_crypto_client_stream.h"
#include "net/quic/crypto/crypto_protocol.h"
+#include "net/quic/crypto/crypto_utils.h"
#include "net/quic/quic_protocol.h"
+#include "net/quic/quic_session.h"
namespace net {
@@ -32,4 +34,15 @@
return;
}
+bool QuicCryptoClientStream::CryptoConnect() {
+ client_crypto_config_.SetDefaults();
+ CryptoUtils::GenerateNonce(session()->connection()->clock(),
+ session()->connection()->random_generator(),
+ &nonce_);
+ CryptoHandshakeMessage message;
+ CryptoUtils::FillClientHelloMessage(client_crypto_config_, nonce_, &message);
+ SendHandshakeMessage(message);
+ return true;
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698