[Botan-devel] tls_server example in 1.9.11

Jack Lloyd lloyd at randombit.net
Tue Nov 30 01:08:42 EST 2010


The tls_server example in the 1.9.11 release doesn't compile. I
was in a hurry, and the release script doesn't automatically
check that the examples build. -Jack

The patch:

--- doc/examples/tls_server.cpp
+++ doc/examples/tls_server.cpp
@@ -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();



More information about the botan-devel mailing list