aboutsummaryrefslogtreecommitdiffstats
path: root/sha_256.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sha_256.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sha_256.c b/sha_256.c
index 23bf526..17dda3a 100644
--- a/sha_256.c
+++ b/sha_256.c
@@ -1,6 +1,7 @@
/* See LICENSE file for copyright and license details. */
-#define TEST
-#include "common.h"
+#ifdef SUPPORT_SHA2
+# define TEST
+# include "common.h"
static struct testcase testcases[] = {
@@ -26,6 +27,12 @@ static struct testcase testcases[] = {
};
+#else
+# define TEST_UNSUPPORTED
+# include "common.h"
+#endif
+
+
int
main(void)
{