summaryrefslogtreecommitdiff
path: root/bin/md5/md5.c
AgeCommit message (Expand)Author
2017-04-26In -C mode, process all checksums that match the specified file(s),Todd C. Miller
2016-12-16Move declaration of an 'i' inside the scope of its use. Which inKenneth R Westerback
2016-12-16Eliminate some gcc warnings about 'unused variables', mostly byKenneth R Westerback
2016-09-03add sha512/256 support to check that the libc code is right :)Ted Unangst
2016-08-26Pull in <sys/time.h> for gettimeofday()Philip Guenther
2016-07-29all of the update functions take a size_t. correct type and casts.Ted Unangst
2015-12-09Remove NULL-check before free(). ok tb@mmcc
2015-10-10normalize the ordering of tame requests (particularily, "rpath wpath cpath",Theo de Raadt
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-04Repair tame() error check to be == -1Theo de Raadt
2015-10-03right at startup, this can tame "stdio cpath rpath wpath". after getoptTheo de Raadt
2015-01-19cleanup of the SMALL hiding from Mathias SvenssonTheo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-09-13Replace all queue *_END macro calls except CIRCLEQ_END with NULL.Doug Hogan
2014-06-19Fix memory leak in digest_file() on ferror(). OK tedu@ lteo@Todd C. Miller
2014-03-26Ignore the -b option if cksum is called as-is (e.g. "cksum -b /bsd")Lawrence Teo
2014-03-20purge sum and sysvsum code. ok deraadt jmc lteo millertTed Unangst
2014-03-20remove insecure MD4 checksum algorithm; ok tedu@, man page ok jmc@Christian Weisgerber
2014-03-07When using the -C option, exit with an exit status of 1 if any of theLawrence Teo
2014-01-15add -C to the man page, and adjust usage();Jason McIntyre
2014-01-15Add support for a -C option. It works on a checklist like -c but onlyLawrence Teo
2014-01-12Also move case 'c' into the #ifdef for a smaller binary. It will fall intoTheo de Raadt
2014-01-11use -DSHA2_ONLY to be more clear about what we are butcheringTheo de Raadt
2014-01-10catch up to the fact that md5/sha* got merged, and document -c consistently;Jason McIntyre
2014-01-10When using a checklist, print MISSING for non-existent files.Lawrence Teo
2014-01-10the -c option is really a mode change, incompatible with other options.Ted Unangst
2014-01-08Fix wrapping of usage message for cksum.Todd C. Miller
2014-01-08err() not errx() when fopen fails.Todd C. Miller
2014-01-08Remove NHASHES, it is not needed and is incompatible with #ifdef SMALL.Todd C. Miller
2014-01-08Remove pmode, fix hfile open mode, check return value when writingTodd C. Miller
2014-01-08Add -DSMALL support to kill a lot of the unncecessary hashes and checksumsTheo de Raadt
2014-01-08Add support for -h hashfile. This is very useful with with -p, in a pipeline,Theo de Raadt
2013-12-23install a link as sha512. simplify program internals; there are onlyTed Unangst
2013-11-21add unsigned char casts for specific calls to ctype.h macros.Theo de Raadt
2013-04-15SHA-224 is to SHA-256 as SHA-384 is to SHA-512. It was added in aTodd C. Miller
2013-03-30Return an exit code of 1 if the file cannot be opened (e.g. file doesLawrence Teo
2012-12-04replace sys/param.h with sys/types.h (and sometimes add limits.h if needed)Theo de Raadt
2011-07-05fix memset sizeof, found by jsg. ok krwTed Unangst
2010-10-27Use a 32KB data buffer instead of a 1KB buffer.Todd C. Miller
2010-10-25Use stdio when reading in the file to be checksummed. This can improveTodd C. Miller
2008-09-06adapt to sha2(3) API changes; ok millert@Damien Miller
2008-07-29md5(1), sha1(1), rmd160(1), cksum(1) and sum(1) have different options;Igor Sobrado
2007-11-07properly exit >0 when encountering bad md5 in cheklistCharles Longeau
2007-10-31clamp -ttttttttt test counter to 1B, so that it does not wrap negative;Theo de Raadt
2007-04-14if we define a constant for the OPTSTRING, we can as well use it.Alexander von Gernler
2007-04-13allow multiple -t to increase the test count. cpus are getting too fast.Ted Unangst
2007-03-29Fix a cust & pastoTodd C. Miller
2007-03-29Do not print a warning that no valid checksums were found if thereTodd C. Miller
2007-03-28Supress warnings for the first getopt() pass. Otherwise,Todd C. Miller
2007-03-27Add base64 support to cksum and friends. Output encoding canTodd C. Miller