aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssl/tls_client.cpp')
-rw-r--r--src/ssl/tls_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ssl/tls_client.cpp b/src/ssl/tls_client.cpp
index 976b7c917..8c3d4db99 100644
--- a/src/ssl/tls_client.cpp
+++ b/src/ssl/tls_client.cpp
@@ -87,7 +87,7 @@ TLS_Client::TLS_Client(const TLS_Policy& pol,
policy(pol),
rng(r),
peer(sock),
- writer(sock)
+ writer(std::tr1::bind(&Socket::write, std::tr1::ref(peer), _1, _2))
{
initialize();
}
@@ -103,7 +103,7 @@ TLS_Client::TLS_Client(const TLS_Policy& pol,
policy(pol),
rng(r),
peer(sock),
- writer(sock)
+ writer(std::tr1::bind(&Socket::write, std::tr1::ref(peer), _1, _2))
{
certs.push_back(cert);
keys.push_back(PKCS8::copy_key(key, rng));