diff options
-rw-r--r-- | src/tests/test_certstor.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/tests/test_certstor.cpp b/src/tests/test_certstor.cpp index 0508189cb..4963f7465 100644 --- a/src/tests/test_certstor.cpp +++ b/src/tests/test_certstor.cpp @@ -5,22 +5,25 @@ */ #include "tests.h" - -#include <botan/certstor.h> -#include <botan/internal/filesystem.h> -#include <botan/pkcs8.h> -#include <botan/pk_keys.h> #include <sstream> -#if defined(BOTAN_HAS_CERTSTOR_SQLITE3) - #include <botan/certstor_sqlite.h> - #include <botan/sqlite3.h> + +#if defined(BOTAN_HAS_X509) && defined(BOTAN_HAS_PUBKEY) + #include <botan/certstor.h> + #include <botan/internal/filesystem.h> + #include <botan/pkcs8.h> + #include <botan/pk_keys.h> + + #if defined(BOTAN_HAS_CERTSTOR_SQLITE3) + #include <botan/certstor_sqlite.h> + #include <botan/sqlite3.h> + #endif #endif namespace Botan_Tests { namespace { -#if defined(BOTAN_HAS_RSA) && defined(BOTAN_TARGET_OS_HAS_FILESYSTEM) +#if defined(BOTAN_HAS_X509) && defined(BOTAN_HAS_RSA) && defined(BOTAN_TARGET_OS_HAS_FILESYSTEM) struct CertificateAndKey { |