diff options
author | lloyd <[email protected]> | 2011-12-30 20:35:27 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-30 20:35:27 +0000 |
commit | 2920f1be500d53414b863ec61ca9c2008336479f (patch) | |
tree | fb2dd5c855016521c69d2b1885a7f081e7d3ea8f /doc | |
parent | deb92d7f6d43206c04f332625d6b1e1a2abc444d (diff) |
Rename the session type to 'TLS_Session'. Split the manager out into
its own file. Rename tls_state to tls_handshake_state.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/tls_client.cpp | 3 | ||||
-rw-r--r-- | doc/examples/tls_server.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/examples/tls_client.cpp b/doc/examples/tls_client.cpp index be72a65e7..275d4b309 100644 --- a/doc/examples/tls_client.cpp +++ b/doc/examples/tls_client.cpp @@ -1,5 +1,6 @@ #include <botan/botan.h> #include <botan/tls_client.h> +#include <botan/hex.h> #include <stdio.h> #include <string> #include <iostream> @@ -66,7 +67,7 @@ int connect_to_host(const std::string& host, u16bit port) return fd; } -void handshake_complete(const TLS_Session_Params& session) +void handshake_complete(const TLS_Session& session) { printf("Handshake complete, protocol=%04X ciphersuite=%04X compression=%d\n", session.version(), session.ciphersuite(), diff --git a/doc/examples/tls_server.cpp b/doc/examples/tls_server.cpp index 0710c35f9..d9334c47e 100644 --- a/doc/examples/tls_server.cpp +++ b/doc/examples/tls_server.cpp @@ -1,5 +1,6 @@ #include <botan/botan.h> #include <botan/tls_server.h> +#include <botan/hex.h> #include <botan/rsa.h> #include <botan/dsa.h> @@ -15,7 +16,7 @@ using namespace Botan; #include <iostream> #include <memory> -void handshake_complete(const TLS_Session_Params& session) +void handshake_complete(const TLS_Session& session) { printf("Handshake complete, protocol=%04X ciphersuite=%04X compression=%d\n", session.version(), session.ciphersuite(), |