Index: net/quic/quic_utils.h |
=================================================================== |
--- net/quic/quic_utils.h (revision 174485) |
+++ net/quic/quic_utils.h (working copy) |
@@ -17,6 +17,11 @@ |
namespace net { |
+class QuicClientHelloConfig; |
+class QuicClock; |
+class QuicRandom; |
+struct CryptoHandshakeMessage; |
+ |
class NET_EXPORT_PRIVATE QuicUtils { |
public: |
// The overhead the quic framing will add for a packet with num_frames |
@@ -29,6 +34,15 @@ |
// Returns the name of the quic error code as a char* |
static const char* ErrorToString(QuicErrorCode error); |
+ |
+ // Generates the connection nonce. |
+ static void GenerateNonce(const QuicClock* clock, |
+ QuicRandom* random_generator, |
+ std::string* nonce); |
+ |
+ static void FillClientHelloMessage(const QuicClientHelloConfig& config, |
Ryan Hamilton
2012/12/22 22:31:32
I think you'll end up wanting the inverse of this
|
+ const std::string& nonce, |
Ryan Hamilton
2012/12/22 22:31:32
nit: add #include <string>
|
+ CryptoHandshakeMessage* message); |
wtc
2012/12/22 04:21:51
Is QuicUtils the right home for these two utility
Ryan Hamilton
2012/12/22 22:31:32
This is fine. I think I'd probably create a Crypt
|
}; |
} // namespace net |