aboutsummaryrefslogtreecommitdiff
path: root/tests.h
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-07-16 21:04:10 -0400
committerPaul Duncan <pabs@pablotron.org>2019-07-16 21:04:10 -0400
commit95629acc2902541460698d1898175499500caecd (patch)
treee5ed5bb6f888617cee6315c8248546fef22197fd /tests.h
parentae8484372cbbf0bad041f3bd9b11c18d9cf37be7 (diff)
downloadsha2-95629acc2902541460698d1898175499500caecd.tar.bz2
sha2-95629acc2902541460698d1898175499500caecd.zip
add sha224
Diffstat (limited to 'tests.h')
-rw-r--r--tests.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests.h b/tests.h
index 96b8357..339d565 100644
--- a/tests.h
+++ b/tests.h
@@ -1,8 +1,15 @@
#ifndef TESTS_H_
#define TESTS_H_
-unsigned int run_tests(
- void (*on_fail)(const char * const, const uint8_t *, const uint8_t *)
+#include <stdint.h>
+
+typedef void (*test_fail_cb_t)(
+ const int,
+ const char * const,
+ const uint8_t *,
+ const uint8_t *
);
+unsigned int run_tests(test_fail_cb_t);
+
#endif /* TESTS_H_ */