aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_x509.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-04-07 11:32:17 -0400
committerJack Lloyd <[email protected]>2020-04-07 11:32:17 -0400
commitd9d6d7a593da135d2046aeb8a9e05e967d90f538 (patch)
tree19f7de4e358b442a4a1fd81d675ad0a7704e8876 /src/tests/unit_x509.cpp
parentdf73ee690c5795be586cd4df3e33253113a0dcdf (diff)
Fix a couple more build and test failures in certain configurations
Diffstat (limited to 'src/tests/unit_x509.cpp')
-rw-r--r--src/tests/unit_x509.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/unit_x509.cpp b/src/tests/unit_x509.cpp
index eaae35842..d9b785889 100644
--- a/src/tests/unit_x509.cpp
+++ b/src/tests/unit_x509.cpp
@@ -603,7 +603,7 @@ Test::Result test_verify_gost2012_cert()
{
Test::Result result("X509 GOST-2012 certificates");
-#if defined(BOTAN_HAS_GOST_34_10_2012) && defined(BOTAN_HAS_STREEBOG)
+#if defined(BOTAN_HAS_GOST_34_10_2012) && defined(BOTAN_HAS_STREEBOG) && defined(BOTAN_HAS_EMSA1)
try
{
Botan::X509_Certificate root_cert(Test::data_file("x509/gost/gost_root.pem"));
@@ -1600,6 +1600,11 @@ class X509_Cert_Unit_Tests final : public Test
continue;
#endif
+#if !defined(BOTAN_HAS_EMSA1)
+ if(algo != "RSA" && algo != "Ed25519")
+ continue;
+#endif
+
std::unique_ptr<Botan::Private_Key> key = make_a_private_key(algo);
if(key == nullptr)