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,8 +5,14 @@ |
#include "net/quic/quic_crypto_client_stream.h" |
#include "net/quic/crypto/crypto_protocol.h" |
+#include "net/quic/crypto/quic_random.h" |
+#include "net/quic/quic_clock.h" |
#include "net/quic/quic_protocol.h" |
+#include "net/quic/quic_session.h" |
+#include "net/quic/quic_utils.h" |
+using base::StringPiece; |
+ |
namespace net { |
QuicCryptoClientStream::QuicCryptoClientStream(QuicSession* session) |
@@ -32,4 +38,14 @@ |
return; |
} |
+bool QuicCryptoClientStream::CryptoConnect() { |
+ QuicUtils::GenerateNonce(session()->connection()->clock(), |
+ session()->connection()->random_generator(), |
+ &nonce_); |
+ CryptoHandshakeMessage message; |
+ QuicUtils::FillClientHelloMessage(client_hello_config_, nonce_, &message); |
+ SendHandshakeMessage(message); |
+ return true; |
+} |
+ |
} // namespace net |