Commit c5a02685 authored by louiz’'s avatar louiz’

Explicitely include all needed botan headers

Most importantely, include parsing.h, since read_cfg is not implicitely
included anymore in botan 2.3, and that does not compile.

Also do not included botan.h anymore, since it’s deprecated in botan 2.3

fix #3296
parent 1c3d4f6f
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <network/credentials_manager.hpp> #include <network/credentials_manager.hpp>
#include <logger/logger.hpp> #include <logger/logger.hpp>
#include <botan/tls_exceptn.h> #include <botan/tls_exceptn.h>
#include <botan/data_src.h>
#include <config/config.hpp> #include <config/config.hpp>
/** /**
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
#ifdef BOTAN_FOUND #ifdef BOTAN_FOUND
#include <botan/botan.h> #include <botan/credentials_manager.h>
#include <botan/certstor.h>
#include <botan/tls_client.h> #include <botan/tls_client.h>
class TCPSocketHandler; class TCPSocketHandler;
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#ifdef BOTAN_FOUND #ifdef BOTAN_FOUND
# include <botan/hex.h> # include <botan/hex.h>
# include <botan/auto_rng.h>
# include <botan/tls_exceptn.h> # include <botan/tls_exceptn.h>
# include <config/config.hpp> # include <config/config.hpp>
# include <utils/dirname.hpp> # include <utils/dirname.hpp>
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#ifdef BOTAN_FOUND #ifdef BOTAN_FOUND
# include <botan/types.h> # include <botan/types.h>
# include <botan/botan.h>
# include <botan/tls_session_manager.h> # include <botan/tls_session_manager.h>
# include <network/tls_policy.hpp> # include <network/tls_policy.hpp>
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#include <network/tls_policy.hpp> #include <network/tls_policy.hpp>
#include <logger/logger.hpp> #include <logger/logger.hpp>
#include <botan/parsing.h>
#include <botan/exceptn.h>
bool BiboumiTLSPolicy::load(const std::string& filename) bool BiboumiTLSPolicy::load(const std::string& filename)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment