diff options
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -12,3 +12,13 @@ #include <libblake.h> #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[]); |