aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_client.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-07-05 15:09:33 +0000
committerlloyd <[email protected]>2012-07-05 15:09:33 +0000
commit2f94d5c85d3eb05a3d2f83e7783fb8d1bc2d5536 (patch)
tree03c2dfe5bc79f9c753a7b24086e811c641e0f6b3 /src/tls/tls_client.cpp
parentefa00d7ffddc9a41b1fe74ed863bc7debfc44359 (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.cpp2
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),