diff options
Diffstat (limited to 'louloulibs')
-rw-r--r-- | louloulibs/network/credentials_manager.cpp | 6 | ||||
-rw-r--r-- | louloulibs/network/credentials_manager.hpp | 5 |
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 |