aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-08-30 08:14:32 -0400
committerJack Lloyd <[email protected]>2016-08-30 08:14:32 -0400
commit114b8e854170b4662a50b29bded3090b9800086a (patch)
treed4d2c7a4b4b1fb0493c10b782afd3a70a7a1b62b
parent81eb15531bc236086a94b62e688d6b27d50f1ed5 (diff)
Fix tests with newhope disabled
-rw-r--r--src/tests/test_newhope.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/tests/test_newhope.cpp b/src/tests/test_newhope.cpp
index cfa8d9caa..ed3690f55 100644
--- a/src/tests/test_newhope.cpp
+++ b/src/tests/test_newhope.cpp
@@ -5,12 +5,17 @@
*/
#include "tests.h"
-#include <botan/newhope.h>
-#include <botan/chacha.h>
-#include <botan/rng.h>
+
+#if defined(BOTAN_HAS_NEWHOPE) && defined(BOTAN_HAS_CHACHA)
+ #include <botan/newhope.h>
+ #include <botan/chacha.h>
+ #include <botan/rng.h>
+#endif
namespace Botan_Tests {
+#if defined(BOTAN_HAS_NEWHOPE) && defined(BOTAN_HAS_CHACHA)
+
class NEWHOPE_RNG : public Botan::RandomNumberGenerator
{
public:
@@ -124,4 +129,6 @@ class NEWHOPE_Tests : public Text_Based_Test
BOTAN_REGISTER_TEST("newhope", NEWHOPE_Tests);
+#endif
+
}