diff options
Diffstat (limited to 'src/network/tcp_socket_handler.cpp')
-rw-r--r-- | src/network/tcp_socket_handler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/tcp_socket_handler.cpp b/src/network/tcp_socket_handler.cpp index e05caad..5e4ae30 100644 --- a/src/network/tcp_socket_handler.cpp +++ b/src/network/tcp_socket_handler.cpp @@ -194,7 +194,7 @@ void TCPSocketHandler::send_data(std::string&& data) if (this->use_tls) try { this->tls_send(std::move(data)); - } catch (const Botan::TLS::TLS_Exception& e) { + } catch (const Botan::Exception& e) { this->on_connection_close("TLS error: "s + e.what()); this->close(); return ; @@ -261,7 +261,7 @@ void TCPSocketHandler::tls_recv() const bool was_active = this->tls->is_active(); try { this->tls->received_data(recv_buf, static_cast<size_t>(size)); - } catch (const Botan::TLS::TLS_Exception& e) { + } catch (const Botan::Exception& e) { // May happen if the server sends malformed TLS data (buggy server, // or more probably we are just connected to a server that sends // plain-text) @@ -277,7 +277,7 @@ void TCPSocketHandler::tls_recv() void TCPSocketHandler::tls_send(std::string&& data) { // We may not be connected yet, or the tls session has - // not yet been negociated + // not yet been negotiated if (this->tls && this->tls->is_active()) { const bool was_active = this->tls->is_active(); |