aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
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