From 2e392f624c1c43be822dbd08b5ec73e8e8002ee0 Mon Sep 17 00:00:00 2001 From: Rene Meusel Date: Fri, 12 Apr 2019 15:02:19 +0200 Subject: FIX: build with x509 module disabled --- src/tests/test_certstor_utils.cpp | 5 +++-- src/tests/test_certstor_utils.h | 12 +++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'src/tests') diff --git a/src/tests/test_certstor_utils.cpp b/src/tests/test_certstor_utils.cpp index 3dc171411..9a0a141d9 100644 --- a/src/tests/test_certstor_utils.cpp +++ b/src/tests/test_certstor_utils.cpp @@ -7,10 +7,10 @@ #include "test_certstor_utils.h" +#if defined(BOTAN_HAS_X509_CERTIFICATES) + #include -#include #include -#include namespace Botan_Tests { @@ -68,3 +68,4 @@ std::vector get_unknown_key_id() } } +#endif diff --git a/src/tests/test_certstor_utils.h b/src/tests/test_certstor_utils.h index a89c0ca24..f86e87596 100644 --- a/src/tests/test_certstor_utils.h +++ b/src/tests/test_certstor_utils.h @@ -8,9 +8,13 @@ #ifndef BOTAN_TEST_CERT_STORE_UTILS_H_ #define BOTAN_TEST_CERT_STORE_UTILS_H_ -#include -#include -#include +#include +#include + +#include + +#if defined(BOTAN_HAS_X509_CERTIFICATES) + #include namespace Botan_Tests { @@ -27,5 +31,7 @@ Botan::X509_DN get_skewed_dn(); std::vector get_unknown_key_id(); } + #endif +#endif -- cgit v1.2.3