From d1acc40f9361cf5d1f0e92a0a2569b518b29b1cf Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 31 Aug 2024 07:41:27 +0200 Subject: Add support for extended hash + add support for output hash to custom buffer when supported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- misc-tests.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'misc-tests.c') diff --git a/misc-tests.c b/misc-tests.c index 0144916..4eca0a6 100644 --- a/misc-tests.c +++ b/misc-tests.c @@ -7,7 +7,7 @@ if ((ASSERTION))\ break;\ fprintf(stderr, "assertion `%s` at line %i failed\n", #ASSERTION, __LINE__);\ - exit(1);\ + exit(2);\ } while (0) @@ -23,6 +23,7 @@ eq(struct libhashsum_hasher *a, struct libhashsum_hasher *b) a->process != b->process || a->finalise_const != b->finalise_const || a->finalise != b->finalise || + a->stretch != b->stretch || a->destroy != b->destroy) return 0; if (a->hash_output && memcpy(a->hash_output, b->hash_output, a->hash_size)) -- cgit v1.2.3-70-g09d2