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

Unified Diff: net/quic/crypto/crypto_utils.h

Issue 11633030: Send the ClientHello handshake message. Fix a bug in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove an extraneous test:: before TestCryptoVisitor 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
« no previous file with comments | « net/quic/crypto/crypto_protocol.cc ('k') | net/quic/crypto/crypto_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/crypto_utils.h
===================================================================
--- net/quic/crypto/crypto_utils.h (revision 0)
+++ net/quic/crypto/crypto_utils.h (revision 0)
@@ -0,0 +1,35 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// Some helpers for quic crypto
+
+#ifndef NET_QUIC_CRYPTO_CRYPTO_UTILS_H_
+#define NET_QUIC_CRYPTO_CRYPTO_UTILS_H_
+
+#include <string>
+
+#include "net/base/net_export.h"
+
+namespace net {
+
+class QuicClock;
+class QuicRandom;
+struct CryptoHandshakeMessage;
+struct QuicClientCryptoConfig;
+
+class NET_EXPORT_PRIVATE CryptoUtils {
+ public:
+ // Generates the connection nonce.
+ static void GenerateNonce(const QuicClock* clock,
+ QuicRandom* random_generator,
+ std::string* nonce);
+
+ static void FillClientHelloMessage(const QuicClientCryptoConfig& config,
+ const std::string& nonce,
+ CryptoHandshakeMessage* message);
+};
+
+} // namespace net
+
+#endif // NET_QUIC_CRYPTO_CRYPTO_UTILS_H_
Property changes on: net/quic/crypto/crypto_utils.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « net/quic/crypto/crypto_protocol.cc ('k') | net/quic/crypto/crypto_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698