From 67062441f6bac3785b755eacd8d67e1a2a69f085 Mon Sep 17 00:00:00 2001 From: Jose Pereira Date: Fri, 7 Sep 2018 11:14:05 -0700 Subject: Fix in-memory certificate store tests not running If sqlite dependency is not used, tests should still be able to run --- src/tests/test_certstor.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/tests/test_certstor.cpp b/src/tests/test_certstor.cpp index 26c1b26d1..0508189cb 100644 --- a/src/tests/test_certstor.cpp +++ b/src/tests/test_certstor.cpp @@ -6,23 +6,21 @@ #include "tests.h" -#if defined(BOTAN_HAS_CERTSTOR_SQL) - #include - #include - #include - #include - #include - #if defined(BOTAN_HAS_CERTSTOR_SQLITE3) - #include - #include - #endif +#include +#include +#include +#include +#include +#if defined(BOTAN_HAS_CERTSTOR_SQLITE3) + #include + #include #endif namespace Botan_Tests { namespace { -#if defined(BOTAN_HAS_CERTSTOR_SQL) && defined(BOTAN_HAS_RSA) && defined(BOTAN_TARGET_OS_HAS_FILESYSTEM) +#if defined(BOTAN_HAS_RSA) && defined(BOTAN_TARGET_OS_HAS_FILESYSTEM) struct CertificateAndKey { -- cgit v1.2.3