From fcc5eb9f87a476115cc742bf45056ccbbc830057 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 16 Jan 2022 21:41:44 +0100 Subject: m + add b2sum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index b0cbd63..96998a8 100644 --- a/common.h +++ b/common.h @@ -12,3 +12,13 @@ #include #include "arg.h" + +/* common.c */ +void *erealloc(void *ptr, size_t n); +void *emalloc(size_t n); +int open_file(const char *path, int *closep); +int check_and_print(const char *path, size_t hashlen, int decode_hex, char newline); +int hash_and_print(const char *path, size_t hashlen, int decode_hex, char newline, int output_case); + +/* *sum.c */ +int hash_fd(int fd, const char *fname, int decode_hex, unsigned char hash[]); -- cgit v1.2.3-70-g09d2