aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-02-11 16:09:43 -0500
committerJack Lloyd <[email protected]>2017-02-11 16:09:43 -0500
commite6008b215b55c0184804828519d3a64bbd4637d4 (patch)
tree78fee1b3b1f42b21edef4afad51f217811413962 /src/tests
parentfc3f52703f62d76beda013623f745d5ac3c8cd1c (diff)
Fix compiling TLS tests without DSA
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/unit_tls.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp
index a5ae3d609..5aeec3572 100644
--- a/src/tests/unit_tls.cpp
+++ b/src/tests/unit_tls.cpp
@@ -122,6 +122,7 @@ class Credentials_Manager_Test : public Botan::Credentials_Manager
chain.push_back(m_ecdsa_ca);
break;
}
+#if defined(BOTAN_HAS_DSA)
else if(key_type == "DSA")
{
if(m_dsa_cert == nullptr || m_dsa_ca == nullptr)
@@ -132,6 +133,7 @@ class Credentials_Manager_Test : public Botan::Credentials_Manager
chain.push_back(*m_dsa_ca);
break;
}
+#endif
}
}