summaryrefslogtreecommitdiffstats
path: root/test/ecdsatest.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2017-06-30 19:55:47 +0100
committerDr. Stephen Henson <steve@openssl.org>2017-06-30 19:55:47 +0100
commit1297ef9928e0b77b1ca81b5aafa47f5b25c247a7 (patch)
tree9860ac989f27b3c295313584b51ca34240ea632d /test/ecdsatest.c
parentb5319bdbd095ff59d084af5ce16e5f715963557d (diff)
Fix build with no-threads no-ec
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3817)
Diffstat (limited to 'test/ecdsatest.c')
-rw-r--r--test/ecdsatest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ecdsatest.c b/test/ecdsatest.c
index 8a245b5d74..ef3f54ca4e 100644
--- a/test/ecdsatest.c
+++ b/test/ecdsatest.c
@@ -13,6 +13,7 @@
#include <string.h>
#include <openssl/opensslconf.h> /* To see if OPENSSL_NO_EC is defined */
+# include "testutil.h"
#ifndef OPENSSL_NO_EC
@@ -26,7 +27,6 @@
# endif
# include <openssl/err.h>
# include <openssl/rand.h>
-# include "testutil.h"
static const char rnd_seed[] =
"string to make the random number generator think it has randomness";
@@ -394,6 +394,7 @@ static int test_builtin(void)
return ret;
}
+#endif
void register_tests(void)
{
@@ -406,4 +407,3 @@ void register_tests(void)
ADD_TEST(test_builtin);
#endif
}
-#endif