aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/tls_server.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-23 21:52:02 +0000
committerlloyd <[email protected]>2012-01-23 21:52:02 +0000
commitd8dbd9556b2ebb50ae4acaeff1b79ef346f07e71 (patch)
tree6decb137353c60f0925f1c0c9826c8712459147e /doc/examples/tls_server.cpp
parent01039638f8b5387540c4bacd4d236a8b8e806d0f (diff)
Update examples with new ciphersuite string printer
Diffstat (limited to 'doc/examples/tls_server.cpp')
-rw-r--r--doc/examples/tls_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/tls_server.cpp b/doc/examples/tls_server.cpp
index 6f986c7a1..0f6287599 100644
--- a/doc/examples/tls_server.cpp
+++ b/doc/examples/tls_server.cpp
@@ -54,8 +54,8 @@ class Credentials_Manager_Simple : public Credentials_Manager
bool handshake_complete(const TLS::Session& session)
{
- printf("Handshake complete, protocol=%04X ciphersuite=%04X compression=%d\n",
- session.version(), session.ciphersuite(),
+ printf("Handshake complete, protocol=%04X ciphersuite=%s compression=%d\n",
+ session.version(), session.ciphersuite().to_string().c_str(),
session.compression_method());
printf("Session id = %s\n", hex_encode(session.session_id()).c_str());