diff options
author | Matthias Gierlings <[email protected]> | 2016-05-16 20:46:50 +0200 |
---|---|---|
committer | Matthias Gierlings <[email protected]> | 2016-06-19 18:28:36 +0200 |
commit | 93df95db45fa126725808fbd53aa978b00cf08ad (patch) | |
tree | 9c0b81ef8488a7c3142d1f95ac5904470ac3c3a9 /src/cli | |
parent | 89b75a5a36c18a7593aa6bdbb472e301904a66b3 (diff) |
Added virtual Callback Interface
- extracted inner class TLS::Channel::Callbacks to stand-alone class
TLS::Callbacks.
- provided default implementations for TLS::Callbacks members executing
calls to std::function members for backward compatibility.
- applied changes to cli, tests and TLS::Channel related classes to be
compatible with new interface.
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/tls_client.cpp | 2 | ||||
-rw-r--r-- | src/cli/tls_server.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/tls_client.cpp b/src/cli/tls_client.cpp index f6cc2e518..2e7daed6e 100644 --- a/src/cli/tls_client.cpp +++ b/src/cli/tls_client.cpp @@ -119,7 +119,7 @@ class TLS_Client final : public Command version = Botan::TLS::Protocol_Version::TLS_V11; } - Botan::TLS::Client client(Botan::TLS::Client::Callbacks( + Botan::TLS::Client client(Botan::TLS::Callbacks( socket_write, std::bind(&TLS_Client::process_data, this, _1, _2), std::bind(&TLS_Client::alert_received, this, _1), diff --git a/src/cli/tls_server.cpp b/src/cli/tls_server.cpp index c9f0b0a79..dffd30f66 100644 --- a/src/cli/tls_server.cpp +++ b/src/cli/tls_server.cpp @@ -107,7 +107,7 @@ class TLS_Server final : public Command } }; - Botan::TLS::Server server(Botan::TLS::Server::Callbacks( + Botan::TLS::Server server(Botan::TLS::Callbacks( socket_write, proc_fn, std::bind(&TLS_Server::alert_received, this, _1), |