diff options
author | lloyd <[email protected]> | 2012-07-05 15:09:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-07-05 15:09:33 +0000 |
commit | 2f94d5c85d3eb05a3d2f83e7783fb8d1bc2d5536 (patch) | |
tree | 03c2dfe5bc79f9c753a7b24086e811c641e0f6b3 /src/tls/tls_client.cpp | |
parent | efa00d7ffddc9a41b1fe74ed863bc7debfc44359 (diff) |
Record_Writer needs a PRNG for the IV generation. Share the reference
with the channel object instead of calling the global object.
Diffstat (limited to 'src/tls/tls_client.cpp')
-rw-r--r-- | src/tls/tls_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/tls_client.cpp b/src/tls/tls_client.cpp index 1f427ea14..db967cee3 100644 --- a/src/tls/tls_client.cpp +++ b/src/tls/tls_client.cpp @@ -27,7 +27,7 @@ Client::Client(std::function<void (const byte[], size_t)> output_fn, RandomNumberGenerator& rng, const std::string& hostname, std::function<std::string (std::vector<std::string>)> next_protocol) : - Channel(output_fn, proc_fn, handshake_fn, session_manager), + Channel(output_fn, proc_fn, handshake_fn, session_manager, rng), m_policy(policy), m_rng(rng), m_creds(creds), |