Fix the build without botan, caused by credentials_manager
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user