dsl
75469d03e1
Separate out the CRC functions in a manner that actually makes them useful
...
for other program binaries.
Fixes build of 'config' where I added code (commented out) to use the CRC
function - but didn't comment out the #include :-(
2006-09-04 20:01:10 +00:00
elad
6383828527
Avoid defining max. hash length ugliness simply by passing NULL for the
...
buffer to the File routines.
Noted by pooka@.
2005-09-02 17:39:23 +00:00
elad
50b96d774b
Use MAXHASHLEN to indicate largest possible hash.
...
Fixes buffer overflow found by xtraeme@.
2005-09-02 16:52:03 +00:00
elad
3722a15dc3
Add support for SHA2 in cksum.
2005-08-24 19:59:08 +00:00
xtraeme
691a36f2ea
whitespace, remove main() prototype.
2005-01-20 15:44:59 +00:00
xtraeme
5c1d419d06
* Kill __P()
...
* ANSIfy
* No parenthesis are needed around the return value
2005-01-12 17:04:35 +00:00
kleink
4bd5e026a4
Update to keep file lengths in appropriate data types (off_t, as opposed
...
to u_int32_t).
2003-12-20 23:41:38 +00:00
lukem
171d653219
Overhaul how `build.sh tools' are used:
...
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
bjh21
efc4b53dc6
Add the necessary bits to make cksum buildable as a host tool.
2002-03-31 14:30:20 +00:00
atatat
157a88bcf0
Apparently changing crc() to ccrc() was bad, since mtree does a reachover.
...
Revert ccrc() to crc() and change local variables called crc to thecrc
instead.
2001-03-21 03:16:38 +00:00
atatat
0d2c6226b0
Rename the crc() function to ccrc() since that removes a compiler warning
...
when WARNS=2.
2001-03-20 18:48:10 +00:00
atatat
61e4caef25
Add MD2, MD4, SHA1, and RMD160 support to cksum. Adding new hashes to
...
cksum(1) should now be easy.
2001-03-20 18:46:25 +00:00
thorpej
0941c04d45
Add support for generating MD5 checksums, partially derived from the
...
FreeBSD md5(1) program. MD5 checksums may be generated by using the
"-m" flag to cksum, or by invoking this program as "md5".
1997-01-30 01:10:32 +00:00
glass
7659edad1f
merged with 4.4Lite
1995-03-26 04:55:22 +00:00
cgd
8020777591
cksum uses 32-bit quantites, internally
1994-12-24 16:02:45 +00:00
cgd
19f1d2d611
update to the latest cksum utility from uunet. this one is posix
...
compliant (i think), and fixes a bogon in the old CRC calculation.
yes, that's right, the CRC's it generates are different.
1993-11-02 07:33:08 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00