diff options
author | louiz’ <louiz@louiz.org> | 2016-06-13 19:59:17 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-06-13 20:46:30 +0200 |
commit | 5a2e61161792cf51209f240e40e28036195f35be (patch) | |
tree | ed63eff92b075117e8f16e8644d715c4ca0fd132 /louloulibs/network/credentials_manager.cpp | |
parent | ad4ccdbbea129cfbab89773bea040d4149afcb2d (diff) | |
download | biboumi-5a2e61161792cf51209f240e40e28036195f35be.tar.gz biboumi-5a2e61161792cf51209f240e40e28036195f35be.tar.bz2 biboumi-5a2e61161792cf51209f240e40e28036195f35be.tar.xz biboumi-5a2e61161792cf51209f240e40e28036195f35be.zip |
Show off, with some variadic templates, for the logger module
Diffstat (limited to 'louloulibs/network/credentials_manager.cpp')
-rw-r--r-- | louloulibs/network/credentials_manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/louloulibs/network/credentials_manager.cpp b/louloulibs/network/credentials_manager.cpp index c5b8493..ee83c3b 100644 --- a/louloulibs/network/credentials_manager.cpp +++ b/louloulibs/network/credentials_manager.cpp @@ -41,7 +41,7 @@ void BasicCredentialsManager::verify_certificate_chain(const std::string& type, const std::string& purported_hostname, const std::vector<Botan::X509_Certificate>& certs) { - log_debug("Checking remote certificate (" << type << ") for hostname " << purported_hostname); + log_debug("Checking remote certificate (", type, ") for hostname ", purported_hostname); try { Botan::Credentials_Manager::verify_certificate_chain(type, purported_hostname, certs); @@ -49,7 +49,7 @@ void BasicCredentialsManager::verify_certificate_chain(const std::string& type, } catch (const std::exception& tls_exception) { - log_warning("TLS certificate check failed: " << tls_exception.what()); + log_warning("TLS certificate check failed: ", tls_exception.what()); if (!this->trusted_fingerprint.empty() && !certs.empty() && this->trusted_fingerprint == certs[0].fingerprint() && certs[0].matches_dns_name(purported_hostname)) @@ -78,7 +78,7 @@ void BasicCredentialsManager::load_certs() try { Botan::DataSource_Stream bundle(path); - log_debug("Using ca bundle: " << path); + log_debug("Using ca bundle: ", path); while (!bundle.end_of_data() && bundle.check_available(27)) { // TODO: remove this work-around for Botan 1.11.29 |