summaryrefslogtreecommitdiff
path: root/louloulibs/network/tcp_socket_handler.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-11-02 03:26:13 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-11-02 03:26:13 +0100
commitf928f7627247ceaafcf3538066ac17609b652aac (patch)
tree4f5740fb8150876a9eaad16c2339f3a338899ebf /louloulibs/network/tcp_socket_handler.cpp
parent7e07a17420117758ca319b5beab6440ff1d634f7 (diff)
downloadbiboumi-f928f7627247ceaafcf3538066ac17609b652aac.tar.gz
biboumi-f928f7627247ceaafcf3538066ac17609b652aac.tar.bz2
biboumi-f928f7627247ceaafcf3538066ac17609b652aac.tar.xz
biboumi-f928f7627247ceaafcf3538066ac17609b652aac.zip
Verify the remote TLS certificates using the system-wide trusted CAs
Diffstat (limited to 'louloulibs/network/tcp_socket_handler.cpp')
-rw-r--r--louloulibs/network/tcp_socket_handler.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/louloulibs/network/tcp_socket_handler.cpp b/louloulibs/network/tcp_socket_handler.cpp
index f2a2466..81a36ef 100644
--- a/louloulibs/network/tcp_socket_handler.cpp
+++ b/louloulibs/network/tcp_socket_handler.cpp
@@ -19,7 +19,7 @@
# include <botan/tls_exceptn.h>
Botan::AutoSeeded_RNG TCPSocketHandler::rng;
-Permissive_Credentials_Manager TCPSocketHandler::credential_manager;
+Basic_Credentials_Manager TCPSocketHandler::credential_manager;
Botan::TLS::Policy TCPSocketHandler::policy;
Botan::TLS::Session_Manager_In_Memory TCPSocketHandler::session_manager(TCPSocketHandler::rng);
@@ -451,15 +451,7 @@ bool TCPSocketHandler::tls_handshake_cb(const Botan::TLS::Session& session)
void TCPSocketHandler::on_tls_activated()
{
- this->send_data("");
-}
-
-void Permissive_Credentials_Manager::verify_certificate_chain(const std::string& type,
- const std::string& purported_hostname,
- const std::vector<Botan::X509_Certificate>&)
-{ // TODO: Offer the admin to disallow connection on untrusted
- // certificates
- log_debug("Checking remote certificate (" << type << ") for hostname " << purported_hostname);
+ this->send_data({});
}
#endif // BOTAN_FOUND