summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-11-02 17:15:32 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-11-02 17:15:32 +0100
commit4a51850173e86f3682e9220704c9b17c09091222 (patch)
treebe3cd94fcb68baf850662def637d0454536e583e
parent0a4041f7e9d30fae9b2bfcfaaf1dc3efb368f86f (diff)
downloadbiboumi-4a51850173e86f3682e9220704c9b17c09091222.tar.gz
biboumi-4a51850173e86f3682e9220704c9b17c09091222.tar.bz2
biboumi-4a51850173e86f3682e9220704c9b17c09091222.tar.xz
biboumi-4a51850173e86f3682e9220704c9b17c09091222.zip
Verify TLS certificate with the given hostname, instead of a hardcoded one
-rw-r--r--louloulibs/network/credentials_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/louloulibs/network/credentials_manager.cpp b/louloulibs/network/credentials_manager.cpp
index 77198a4..8608f90 100644
--- a/louloulibs/network/credentials_manager.cpp
+++ b/louloulibs/network/credentials_manager.cpp
@@ -11,7 +11,7 @@ void Basic_Credentials_Manager::verify_certificate_chain(const std::string& type
const std::vector<Botan::X509_Certificate>& certs)
{
log_debug("Checking remote certificate (" << type << ") for hostname " << purported_hostname);
- Botan::Credentials_Manager::verify_certificate_chain(type, "louiz.org", certs);
+ Botan::Credentials_Manager::verify_certificate_chain(type, purported_hostname, certs);
log_debug("Certificate is valid");
}
void Basic_Credentials_Manager::load_certs()