aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_certstor_utils.h
diff options
context:
space:
mode:
authorRene Meusel <[email protected]>2019-04-12 15:02:19 +0200
committerRene Meusel <[email protected]>2019-04-12 15:02:24 +0200
commit2e392f624c1c43be822dbd08b5ec73e8e8002ee0 (patch)
treeec66822567c5a854cce4c775a6e7fb130975f353 /src/tests/test_certstor_utils.h
parent0c29ab1dff4926ddbbdb5f1a8c4392e1c143531d (diff)
FIX: build with x509 module disabled
Diffstat (limited to 'src/tests/test_certstor_utils.h')
-rw-r--r--src/tests/test_certstor_utils.h12
1 files changed, 9 insertions, 3 deletions
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 <botan/ber_dec.h>
-#include <botan/der_enc.h>
-#include <botan/hex.h>
+#include <string>
+#include <vector>
+
+#include <botan/build.h>
+
+#if defined(BOTAN_HAS_X509_CERTIFICATES)
+
#include <botan/x509_dn.h>
namespace Botan_Tests {
@@ -27,5 +31,7 @@ Botan::X509_DN get_skewed_dn();
std::vector<uint8_t> get_unknown_key_id();
}
+
#endif
+#endif