aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-24 13:04:08 -0400
committerJack Lloyd <[email protected]>2017-09-24 13:04:08 -0400
commit3785deadff522923299c34bcd2ba364c02abbf0c (patch)
treed8993e9f91de3353b0be96bd7a5d542c6ae8192d /src/cli
parent8e70617d88b3f486d03f156f4800673bc4e14d06 (diff)
Further build/test fixes for restricted configurations
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/speed.cpp4
-rw-r--r--src/cli/utils.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index d576e15c8..f5cc3c3b8 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -96,6 +96,10 @@
#include <botan/ed25519.h>
#endif
+#if defined(BOTAN_HAS_DL_GROUP)
+ #include <botan/dl_group.h>
+#endif
+
#if defined(BOTAN_HAS_DIFFIE_HELLMAN)
#include <botan/dh.h>
#endif
diff --git a/src/cli/utils.cpp b/src/cli/utils.cpp
index 92a1a9d02..6b108eb43 100644
--- a/src/cli/utils.cpp
+++ b/src/cli/utils.cpp
@@ -82,7 +82,7 @@ cli_make_rng(const std::string& rng_type, const std::string& hex_drbg_seed)
}
#endif
-#if defined(BOTAN_HAS_HMAC_DRBG)
+#if defined(BOTAN_HAS_HMAC_DRBG) && defined(BOTAN_AUTO_RNG_HMAC)
if(rng_type == "drbg")
{
std::unique_ptr<Botan::MessageAuthenticationCode> mac =