source: freewrt/package/busybox/patches/patch-include_libbb_h@ c6b195c

freewrt_1_0 freewrt_2_0
Last change on this file since c6b195c was c6b195c, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

use make update-patches to generate patches. start ucdhcp as background process, so that you can later attach a cable and still get an ip address without reboot. add address/broadcast parameters to ip link set

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1215 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 719 bytes
Line 
1$FreeWRT$
2--- busybox-1.1.3.orig/include/libbb.h Wed May 17 20:51:46 2006
3+++ busybox-1.1.3/include/libbb.h Sat Nov 25 19:54:19 2006
4@@ -484,6 +484,12 @@ void md5_begin(md5_ctx_t *ctx);
5 void md5_hash(const void *data, size_t length, md5_ctx_t *ctx);
6 void *md5_end(void *resbuf, md5_ctx_t *ctx);
7
8+typedef enum { HASH_SHA1, HASH_MD5 } hash_algo_t;
9+
10+unsigned char *hash_bin_to_hex(unsigned char *hash_value, unsigned char hash_length);
11+int hash_fd(int fd, hash_algo_t hash_algo, uint8_t *hash_value);
12+uint8_t *hash_file(const char *filename, hash_algo_t hash_algo);
13+
14 /* busybox.h will include dmalloc later for us, else include it here. */
15 #if !defined _BB_INTERNAL_H_ && defined DMALLOC
16 #include <dmalloc.h>
Note: See TracBrowser for help on using the repository browser.