aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 5e46166..159626d 100644
--- a/src/util.h
+++ b/src/util.h
@@ -10,11 +10,15 @@
#define __RUTIL_H__
#include <stddef.h>
+#include <stdio.h>
extern void __attribute__((noreturn)) die_(const char *err, ...);
extern void *xmalloc(size_t size);
extern void *xrealloc(void *ptr, size_t size);
extern char *xstrdup(const char *str);
extern char *concat(size_t count, ...);
+extern unsigned char *hash_file(FILE *fp);
+extern void sha1_to_hex(const unsigned char *sha1, char *buf);
+extern void hex_to_sha1(const char *s, unsigned char *sha1);
#endif