summaryrefslogtreecommitdiff
path: root/louloulibs
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-11-02 17:31:35 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-11-02 17:31:35 +0100
commit06db9b366a83121e0c914e527a367f90ec71940a (patch)
treed5d44c00fb76fe43574e32c8936e4e67c38e17b8 /louloulibs
parent4a51850173e86f3682e9220704c9b17c09091222 (diff)
downloadbiboumi-06db9b366a83121e0c914e527a367f90ec71940a.tar.gz
biboumi-06db9b366a83121e0c914e527a367f90ec71940a.tar.bz2
biboumi-06db9b366a83121e0c914e527a367f90ec71940a.tar.xz
biboumi-06db9b366a83121e0c914e527a367f90ec71940a.zip
Fix the build without botan, caused by credentials_manager
Diffstat (limited to 'louloulibs')
-rw-r--r--louloulibs/network/credentials_manager.cpp6
-rw-r--r--louloulibs/network/credentials_manager.hpp5
2 files changed, 11 insertions, 0 deletions
diff --git a/louloulibs/network/credentials_manager.cpp b/louloulibs/network/credentials_manager.cpp
index 8608f90..7c13319 100644
--- a/louloulibs/network/credentials_manager.cpp
+++ b/louloulibs/network/credentials_manager.cpp
@@ -1,5 +1,9 @@
+#include "louloulibs.h"
+
+#ifdef BOTAN_FOUND
#include <network/credentials_manager.hpp>
#include <logger/logger.hpp>
+#include <botan/tls_exceptn.h>
Basic_Credentials_Manager::Basic_Credentials_Manager():
Botan::Credentials_Manager()
@@ -31,3 +35,5 @@ std::vector<Botan::Certificate_Store*> Basic_Credentials_Manager::trusted_certif
{
return {&this->certificate_store};
}
+
+#endif
diff --git a/louloulibs/network/credentials_manager.hpp b/louloulibs/network/credentials_manager.hpp
index ea89eca..8641f1d 100644
--- a/louloulibs/network/credentials_manager.hpp
+++ b/louloulibs/network/credentials_manager.hpp
@@ -1,6 +1,10 @@
#ifndef BIBOUMI_CREDENTIALS_MANAGER_HPP
#define BIBOUMI_CREDENTIALS_MANAGER_HPP
+#include "louloulibs.h"
+
+#ifdef BOTAN_FOUND
+
#include <botan/botan.h>
#include <botan/tls_client.h>
@@ -19,4 +23,5 @@ private:
Botan::Certificate_Store_In_Memory certificate_store;
};
+#endif //BOTAN_FOUND
#endif //BIBOUMI_CREDENTIALS_MANAGER_HPP