aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_x509_path.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-20 10:03:11 -0500
committerJack Lloyd <[email protected]>2017-12-20 10:03:11 -0500
commit646ed79e273f8b51dd2071ac045522f3e0736a40 (patch)
tree2048ed214ce62826ab7f9b6372dfb00d394c3ed0 /src/tests/test_x509_path.cpp
parent3be143169362a3da6d997dcc0ca2cdd61dcbec93 (diff)
Avoid test failures when PKCSv1.5 signatures are disabled in build
Diffstat (limited to 'src/tests/test_x509_path.cpp')
-rw-r--r--src/tests/test_x509_path.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/tests/test_x509_path.cpp b/src/tests/test_x509_path.cpp
index 49f937475..912610ab1 100644
--- a/src/tests/test_x509_path.cpp
+++ b/src/tests/test_x509_path.cpp
@@ -28,7 +28,7 @@ namespace Botan_Tests {
namespace {
-#if defined(BOTAN_HAS_X509_CERTIFICATES) && defined(BOTAN_HAS_RSA) && defined(BOTAN_TARGET_OS_HAS_FILESYSTEM)
+#if defined(BOTAN_HAS_X509_CERTIFICATES) && defined(BOTAN_HAS_RSA) && defined(BOTAN_HAS_EMSA_PKCS1) && defined(BOTAN_TARGET_OS_HAS_FILESYSTEM)
std::map<std::string, std::string> read_results(const std::string& results_file, const char delim = ':')
{
@@ -454,9 +454,6 @@ std::vector<Test::Result> PSS_Path_Validation_Tests::run()
BOTAN_REGISTER_TEST("x509_path_rsa_pss", PSS_Path_Validation_Tests);
-// The certificates in this test suite are signed using EMSA_PKCS1
-#ifdef BOTAN_HAS_EMSA_PKCS1
-
class BSI_Path_Validation_Tests final : public Test
{
public:
@@ -625,8 +622,6 @@ BOTAN_REGISTER_TEST("x509_path_bsi", BSI_Path_Validation_Tests);
#endif
-#endif
-
}
}