From 4a51850173e86f3682e9220704c9b17c09091222 Mon Sep 17 00:00:00 2001
From: Florent Le Coz <louiz@louiz.org>
Date: Mon, 2 Nov 2015 17:15:32 +0100
Subject: Verify TLS certificate with the given hostname, instead of a
 hardcoded one

---
 louloulibs/network/credentials_manager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'louloulibs')

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()
-- 
cgit v1.2.3