aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2019-10-25 10:40:12 +0200
committerRenĂ© Korthaus <[email protected]>2019-10-25 10:40:12 +0200
commita7b7fa47c7173b1c9e145cffe0ad1cbbc816f355 (patch)
tree6e4b6e87bc643c22f44572a61ca6127eb807c42b /src/tests
parent03eb48c7c9f758e15109bdb83595515d98462d67 (diff)
Add guards for XMSS path validation tests
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_x509_path.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tests/test_x509_path.cpp b/src/tests/test_x509_path.cpp
index 49e8783f0..3e07832c3 100644
--- a/src/tests/test_x509_path.cpp
+++ b/src/tests/test_x509_path.cpp
@@ -28,7 +28,9 @@ namespace Botan_Tests {
namespace {
-#if defined(BOTAN_HAS_X509_CERTIFICATES) && defined(BOTAN_HAS_RSA) && defined(BOTAN_HAS_EMSA_PKCS1) && defined(BOTAN_TARGET_OS_HAS_FILESYSTEM)
+#if defined(BOTAN_HAS_X509_CERTIFICATES) && defined(BOTAN_TARGET_OS_HAS_FILESYSTEM)
+
+#if defined(BOTAN_HAS_RSA) && defined(BOTAN_HAS_EMSA_PKCS1)
std::map<std::string, std::string> read_results(const std::string& results_file, const char delim = ':')
{
@@ -895,6 +897,10 @@ class Path_Validation_With_OCSP_Tests final : public Test
BOTAN_REGISTER_TEST("x509_path_with_ocsp", Path_Validation_With_OCSP_Tests);
+#endif
+
+#if defined(BOTAN_HAS_XMSS_RFC8391)
+
class XMSS_Path_Validation_Tests final : public Test
{
public:
@@ -933,6 +939,8 @@ BOTAN_REGISTER_TEST("x509_path_xmss", XMSS_Path_Validation_Tests);
#endif
+#endif
+
}
}