diff options
author | lloyd <[email protected]> | 2010-10-19 04:59:46 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-19 04:59:46 +0000 |
commit | fafe810679e01949ddd8ac86c8367f3c15b0bedc (patch) | |
tree | 3f6c1784aa8bc718fbe3a19e5645521d26ceaf4a /src/ssl/tls_client.cpp | |
parent | 221f9bd1469de9248b0233d366cdc2f0613fc182 (diff) |
Make Record_Writer call a callback instead of writing directly to the socket
Diffstat (limited to 'src/ssl/tls_client.cpp')
-rw-r--r-- | src/ssl/tls_client.cpp | 4 |
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)); |