aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-11-10 04:33:55 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-11-10 04:33:55 +0000
commitc9bd08a4c2704bb5c4d388a07dd141af308fea80 (patch)
tree8a0b113bd44bc2be639e070b50668e4ad69091f2 /include
parent2f7d2dc651711a87e6c4ca65eda13f2dc07da5cf (diff)
downloadbusybox-w32-c9bd08a4c2704bb5c4d388a07dd141af308fea80.tar.gz
busybox-w32-c9bd08a4c2704bb5c4d388a07dd141af308fea80.tar.bz2
busybox-w32-c9bd08a4c2704bb5c4d388a07dd141af308fea80.zip
Merge common parts of sha1sum and md5sum, which is everything except the
algorithms. Move algorithms to hash_fd and make them available via a common function. git-svn-id: svn://busybox.net/trunk/busybox@7863 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 945dc95bc..21ea31690 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -473,4 +473,10 @@ extern void vfork_daemon_rexec(int argc, char **argv, char *foreground_opt);
473extern void get_terminal_width_height(int fd, int *width, int *height); 473extern void get_terminal_width_height(int fd, int *width, int *height);
474extern unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *)); 474extern unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *));
475extern void xregcomp(regex_t *preg, const char *regex, int cflags); 475extern void xregcomp(regex_t *preg, const char *regex, int cflags);
476
477#define HASH_SHA1 1
478#define HASH_MD5 2
479extern int hash_fd(int fd, const off_t size, const uint8_t hash_algo, uint8_t *hashval);
480
481
476#endif /* __LIBCONFIG_H__ */ 482#endif /* __LIBCONFIG_H__ */