[BusyBox-cvs] busybox/include libbb.h,1.117,1.118

Glenn McGrath bug1 at busybox.net
Mon Nov 10 04:33:59 UTC 2003


Update of /var/cvs/busybox/include
In directory winder:/tmp/cvs-serv6101/include

Modified Files:
	libbb.h 
Log Message:
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.


Index: libbb.h
===================================================================
RCS file: /var/cvs/busybox/include/libbb.h,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- libbb.h	3 Nov 2003 21:20:18 -0000	1.117
+++ libbb.h	10 Nov 2003 04:33:55 -0000	1.118
@@ -473,4 +473,10 @@
 extern void get_terminal_width_height(int fd, int *width, int *height);
 extern unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *));
 extern void xregcomp(regex_t *preg, const char *regex, int cflags);
+
+#define HASH_SHA1	1
+#define HASH_MD5	2
+extern int hash_fd(int fd, const off_t size, const uint8_t hash_algo, uint8_t *hashval);
+
+
 #endif /* __LIBCONFIG_H__ */




More information about the busybox-cvs mailing list