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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // Some helpers for quic crypto
6
7 #ifndef NET_QUIC_CRYPTO_CRYPTO_UTILS_H_
8 #define NET_QUIC_CRYPTO_CRYPTO_UTILS_H_
9
10 #include <string>
11
12 #include "net/base/net_export.h"
13
14 namespace net {
15
16 class QuicClientCryptoConfig;
17 class QuicClock;
18 class QuicRandom;
19 struct CryptoHandshakeMessage;
20
21 class NET_EXPORT_PRIVATE CryptoUtils {
22 public:
23 // Generates the connection nonce.
24 static void GenerateNonce(const QuicClock* clock,
25 QuicRandom* random_generator,
26 std::string* nonce);
27
28 static void FillClientHelloMessage(const QuicClientCryptoConfig& config,
29 const std::string& nonce,
30 CryptoHandshakeMessage* message);
31 };
32
33 } // namespace net
34
35 #endif // NET_QUIC_CRYPTO_CRYPTO_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698