diff options
author | lloyd <[email protected]> | 2010-11-30 05:18:49 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-11-30 05:18:49 +0000 |
commit | 017296a5cf2abc07aa10cf8cd9c62e33df110255 (patch) | |
tree | 25f16249e44c2b791fdca2aab41db31a0ab1b84b /doc | |
parent | 65ab36776317f73ddf0f2d3bd6c1c7e35608962f (diff) |
Fix tls_server example compilation
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/tls_server.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/examples/tls_server.cpp b/doc/examples/tls_server.cpp index 91bb9ffbf..da13953f8 100644 --- a/doc/examples/tls_server.cpp +++ b/doc/examples/tls_server.cpp @@ -1,5 +1,5 @@ /* -* (C) 2008 Jack Lloyd +* (C) 2008-2010 Jack Lloyd * * Distributed under the terms of the Botan license */ @@ -70,7 +70,13 @@ int main(int argc, char* argv[]) printf("Got new connection\n"); - TLS_Server tls(policy, rng, *sock, cert, key); + TLS_Server tls( + std::tr1::bind(&Socket::read, std::tr1::ref(sock), _1, _2), + std::tr1::bind(&Socket::write, std::tr1::ref(sock), _1, _2), + policy, + rng, + cert, + key); std::string hostname = tls.requested_hostname(); |