aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-07-12 22:00:11 +0000
committerlloyd <[email protected]>2012-07-12 22:00:11 +0000
commit389e815371681c5f076c0ff2563bf300789ff429 (patch)
tree266af42fc51d483a7ce57516cfba7a4afb34b84f /doc/examples
parent43836c6fd15a944dce1ca25bb0d019ede3ef75e7 (diff)
Add an optional parameter to TLS::Client specifying the port number.
Pass this down into the session managers. Also document how to use session tickets with TLS servers.
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/tls_client.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/doc/examples/tls_client.cpp b/doc/examples/tls_client.cpp
index d8d861e57..5373227ce 100644
--- a/doc/examples/tls_client.cpp
+++ b/doc/examples/tls_client.cpp
@@ -133,13 +133,14 @@ void doit(RandomNumberGenerator& rng,
int sockfd = connect_to_host(host, port);
TLS::Client client(std::bind(socket_write, sockfd, _1, _2),
- process_data,
- handshake_complete,
- session_manager,
- creds,
- policy,
- rng,
- host);
+ process_data,
+ handshake_complete,
+ session_manager,
+ creds,
+ policy,
+ rng,
+ host,
+ port);
fd_set readfds;
@@ -225,7 +226,7 @@ int main(int argc, char* argv[])
AutoSeeded_RNG rng;
TLS::Policy policy;
-#if defined(BOTAN_HAS_TLS_SQLITE_SESSION_MANAGER)
+#if defined(BOTAN_HAS_TLS_SQLITE3_SESSION_MANAGER)
TLS::Session_Manager_SQLite session_manager("my secret passphrase", rng,
"sessions.db");
#else