aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/tls_client.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-13 16:10:34 +0000
committerlloyd <[email protected]>2010-10-13 16:10:34 +0000
commita142500346e9bef5c4b0905103eac9a494d6822e (patch)
tree6bdee25d85d7071f927caa5d4ffb251f085e02a8 /doc/examples/tls_client.cpp
parent18d3acffbe2324a90c505cf23ff17c1392c3be4d (diff)
Fix examples
Diffstat (limited to 'doc/examples/tls_client.cpp')
-rw-r--r--doc/examples/tls_client.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/tls_client.cpp b/doc/examples/tls_client.cpp
index 26e93dd2f..c17ffe4da 100644
--- a/doc/examples/tls_client.cpp
+++ b/doc/examples/tls_client.cpp
@@ -37,7 +37,9 @@ int main(int argc, char* argv[])
std::auto_ptr<Botan::RandomNumberGenerator> rng(
Botan::RandomNumberGenerator::make_rng());
- TLS_Client tls(*rng, sock);
+ TLS_Policy policy;
+
+ TLS_Client tls(policy, *rng, sock);
printf("Handshake extablished...\n");