diff options
author | Matthias Gierlings <[email protected]> | 2016-05-16 23:02:58 +0200 |
---|---|---|
committer | Matthias Gierlings <[email protected]> | 2016-06-19 18:28:38 +0200 |
commit | 490d538512b7f732268358b3a3a6fcbfd2bb67c6 (patch) | |
tree | 200ef15842e924860c33f79d3c8be9c76e47ea39 /src/cli/tls_proxy.cpp | |
parent | 93df95db45fa126725808fbd53aa978b00cf08ad (diff) |
Compatibility patch for TLS::Callback interface
- Added legacy constructor support for TLS::Channel, TLS::Client,
TLS::Server.
Diffstat (limited to 'src/cli/tls_proxy.cpp')
-rw-r--r-- | src/cli/tls_proxy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/tls_proxy.cpp b/src/cli/tls_proxy.cpp index 6c5592faf..d52a67631 100644 --- a/src/cli/tls_proxy.cpp +++ b/src/cli/tls_proxy.cpp @@ -112,7 +112,7 @@ class tls_proxy_session : public boost::enable_shared_from_this<tls_proxy_sessio m_server_endpoints(endpoints), m_client_socket(io), m_server_socket(io), - m_tls(Botan::TLS::Server::Callbacks(boost::bind(&tls_proxy_session::tls_proxy_write_to_client, this, _1, _2), + m_tls(Botan::TLS::Callbacks(boost::bind(&tls_proxy_session::tls_proxy_write_to_client, this, _1, _2), boost::bind(&tls_proxy_session::tls_client_write_to_proxy, this, _1, _2), boost::bind(&tls_proxy_session::tls_alert_cb, this, _1), boost::bind(&tls_proxy_session::tls_handshake_complete, this, _1)), @@ -293,7 +293,7 @@ class tls_proxy_session : public boost::enable_shared_from_this<tls_proxy_sessio return true; } - void tls_alert_cb(Botan::TLS::Alert alert, const uint8_t[], size_t) + void tls_alert_cb(Botan::TLS::Alert alert) { if(alert.type() == Botan::TLS::Alert::CLOSE_NOTIFY) { |