From 3a73ab675a19e2ea29b4cb1385db0188ce4997f8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 24 Aug 2024 11:26:42 +0200 Subject: Make algorithms optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- sha_512_256.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'sha_512_256.c') diff --git a/sha_512_256.c b/sha_512_256.c index 1f41597..f4b168b 100644 --- a/sha_512_256.c +++ b/sha_512_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[] = { @@ -12,6 +13,12 @@ static struct testcase testcases[] = { }; +#else +# define TEST_UNSUPPORTED +# include "common.h" +#endif + + int main(void) { -- cgit v1.2.3-70-g09d2