diff options
Diffstat (limited to 'src/tls/tls_client.cpp')
-rw-r--r-- | src/tls/tls_client.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tls/tls_client.cpp b/src/tls/tls_client.cpp index c6c7a1765..7fa1ad8bc 100644 --- a/src/tls/tls_client.cpp +++ b/src/tls/tls_client.cpp @@ -64,7 +64,11 @@ Client::Client(std::function<void (const byte[], size_t)> output_fn, Handshake_State* Client::new_handshake_state() { - return new Client_Handshake_State(new Stream_Handshake_IO(m_writer)); + using namespace std::placeholders; + + return new Client_Handshake_State( + new Stream_Handshake_IO(std::bind(&Record_Writer::send, + std::ref(m_writer), _1, _2))); } /* |