diff options
author | Jack Lloyd <[email protected]> | 2018-09-07 17:05:01 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-09-07 17:05:01 -0400 |
commit | 643a4041bedc18b70dde1fc257c54d6415fd352b (patch) | |
tree | f184f6f16b0308c53569178287152a70e6cce7bb /src/tests/test_certstor.cpp | |
parent | cc9e507e02be4abd732c2535c37c9c761b33b488 (diff) |
Guard certstore tests with BOTAN_HAS_X509
Otherwise very minimal build fails.
Diffstat (limited to 'src/tests/test_certstor.cpp')
-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 { |