aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_certstor.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-09-07 17:05:01 -0400
committerJack Lloyd <[email protected]>2018-09-07 17:05:01 -0400
commit643a4041bedc18b70dde1fc257c54d6415fd352b (patch)
treef184f6f16b0308c53569178287152a70e6cce7bb /src/tests/test_certstor.cpp
parentcc9e507e02be4abd732c2535c37c9c761b33b488 (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.cpp21
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
{