Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-09-07 | fgetln(3) -> getline(3); from Lauri Tirkkonen; ok millert@ | cheloha | |
2017-09-11 | Use getrusage(2) for the built-in time trial instead of getttimeofday(2). | Todd C. Miller | |
This makes it possible to measure just the ellapsed user time, which is what we really care about when benchmarking an algorithm. OK deraadt@ | |||
2017-05-22 | obvious use for freezero() | Theo de Raadt | |
2017-04-26 | In -C mode, process all checksums that match the specified file(s), | Todd C. Miller | |
not just the first one that matches. OK deraadt@ | |||
2016-12-16 | Move declaration of an 'i' inside the scope of its use. Which in | Kenneth R Westerback | |
turn is inside an #ifdef. Thus making the code clearer by eliminating an #ifdef in the middle of the declarations. Suggested by millert@ | |||
2016-12-16 | Eliminate some gcc warnings about 'unused variables', mostly by | Kenneth R Westerback | |
adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately) | |||
2016-09-03 | add sha512/256 support to check that the libc code is right :) | Ted Unangst | |
2016-08-26 | Pull in <sys/time.h> for gettimeofday() | Philip Guenther | |
2016-07-29 | all of the update functions take a size_t. correct type and casts. | Ted Unangst | |
ok deraadt millert | |||
2015-12-09 | Remove NULL-check before free(). ok tb@ | mmcc | |
2015-10-10 | normalize the ordering of tame requests (particularily, "rpath wpath cpath", | Theo de Raadt | |
which i have put in that order). this is not important, but helps look for outliers which might be strange. it hints that "ioctl" should be reassessed in a few places, to see if "tty" is better; that "unix" may be used in some places where "route" could now work. | |||
2015-10-09 | Change all tame callers to namechange to pledge(2). | Theo de Raadt | |
2015-10-04 | Repair tame() error check to be == -1 | Theo de Raadt | |
2015-10-03 | right at startup, this can tame "stdio cpath rpath wpath". after getopt | Theo de Raadt | |
-h has handled write/creating a file, we can drop to tame "stdio rpath" since md5 will only read files after that. i believe i involved lteo for this. | |||
2015-01-19 | cleanup of the SMALL hiding from Mathias Svensson | Theo de Raadt | |
2015-01-16 | Replace <sys/param.h> with <limits.h> and other less dirty headers where | Theo de Raadt | |
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol) | |||
2014-09-13 | Replace all queue *_END macro calls except CIRCLEQ_END with NULL. | Doug Hogan | |
CIRCLEQ_* is deprecated and not called in the tree. The other queue types have *_END macros which were added for symmetry with CIRCLEQ_END. They are defined as NULL. There's no reason to keep the other *_END macro calls. ok millert@ | |||
2014-06-19 | Fix memory leak in digest_file() on ferror(). OK tedu@ lteo@ | Todd C. Miller | |
2014-03-26 | Ignore the -b option if cksum is called as-is (e.g. "cksum -b /bsd") | Lawrence Teo | |
as documented on the cksum(1) man page. "looks right" deraadt@ ok millert@ | |||
2014-03-20 | purge sum and sysvsum code. ok deraadt jmc lteo millert | Ted Unangst | |
a few initial leftovers spotted by naddy | |||
2014-03-20 | remove insecure MD4 checksum algorithm; ok tedu@, man page ok jmc@ | Christian Weisgerber | |
"A collision attack published in 2007 can find collisions for full MD4 in less than two hash operations." | |||
2014-03-07 | When using the -C option, exit with an exit status of 1 if any of the | Lawrence Teo | |
files specified on the command line do not exist in the checklist. ok deraadt@ tedu@ | |||
2014-01-15 | add -C to the man page, and adjust usage(); | Jason McIntyre | |
ok lteo | |||
2014-01-15 | Add support for a -C option. It works on a checklist like -c but only | Lawrence Teo | |
does the checksum comparison for selected files that are specified on the command line. idea discussed with deraadt@ and tedu@ manpage feedback jmc@ feedback/OK deraadt@ millert@ | |||
2014-01-12 | Also move case 'c' into the #ifdef for a smaller binary. It will fall into | Theo de Raadt | |
default, giving a nice failure. I have not removed -c from the usage() or getopt() because it is too much butchering... | |||
2014-01-11 | use -DSHA2_ONLY to be more clear about what we are butchering | Theo de Raadt | |
idea from tedu | |||
2014-01-10 | catch up to the fact that md5/sha* got merged, and document -c consistently; | Jason McIntyre | |
some style and cleanup tweaks while here ok deraadt | |||
2014-01-10 | When using a checklist, print MISSING for non-existent files. | Lawrence Teo | |
Based on an earlier diff by tedu@ Requested by deraadt@ OK deraadt@ | |||
2014-01-10 | the -c option is really a mode change, incompatible with other options. | Ted Unangst | |
(there are some others too, but -c is particularly misleading.) split it out in synopsis and usage. ok deraadt | |||
2014-01-08 | Fix wrapping of usage message for cksum. | Todd C. Miller | |
2014-01-08 | err() not errx() when fopen fails. | Todd C. Miller | |
2014-01-08 | Remove NHASHES, it is not needed and is incompatible with #ifdef SMALL. | Todd C. Miller | |
Remove style_hash and style_cksum, adjust the style of the selected algorithms based on rflag and qflag instead. | |||
2014-01-08 | Remove pmode, fix hfile open mode, check return value when writing | Todd C. Miller | |
file name to stdout. | |||
2014-01-08 | Add -DSMALL support to kill a lot of the unncecessary hashes and checksums | Theo de Raadt | |
that the install media won't need ok millert, but he used the word butcher! | |||
2014-01-08 | Add support for -h hashfile. This is very useful with with -p, in a pipeline, | Theo de Raadt | |
to deliver the hash output to a different location. ok millert | |||
2013-12-23 | install a link as sha512. simplify program internals; there are only | Ted Unangst | |
two modes. ok deraadt gilles jca | |||
2013-11-21 | add unsigned char casts for specific calls to ctype.h macros. | Theo de Raadt | |
ok guenther step | |||
2013-04-15 | SHA-224 is to SHA-256 as SHA-384 is to SHA-512. It was added in a | Todd C. Miller | |
later revision of FIPS-180. OK miod@ jmc@ guenther@ djm@ | |||
2013-03-30 | Return an exit code of 1 if the file cannot be opened (e.g. file does | Lawrence Teo | |
not exist), or if there is an error reading the file stream. From Patrik Lundin, thanks! ok deraadt | |||
2012-12-04 | replace sys/param.h with sys/types.h (and sometimes add limits.h if needed) | Theo de Raadt | |
ok guenther | |||
2011-07-05 | fix memset sizeof, found by jsg. ok krw | Ted Unangst | |
2010-10-27 | Use a 32KB data buffer instead of a 1KB buffer. | Todd C. Miller | |
2010-10-25 | Use stdio when reading in the file to be checksummed. This can improve | Todd C. Miller | |
performance due to the internal buffering stdio does wrt the optimal read size (st_blksize). OK mikeb@ | |||
2008-09-06 | adapt to sha2(3) API changes; ok millert@ | Damien Miller | |
2008-07-29 | md5(1), sha1(1), rmd160(1), cksum(1) and sum(1) have different options; | Igor Sobrado | |
while here, some KNF improvements. based on a diff for compress(1) written by millert@, fixes from guenther@ and pyr@. ok millert@, pyr@; (for the manual page tweaks) jmc@ | |||
2007-11-07 | properly exit >0 when encountering bad md5 in cheklist | Charles Longeau | |
ok gilles@ millert@ From Tim van der Molen <tbvdm.lists at xs4all.nl> | |||
2007-10-31 | clamp -ttttttttt test counter to 1B, so that it does not wrap negative; | Theo de Raadt | |
from Nicholas Marriott, ok otto | |||
2007-04-14 | if we define a constant for the OPTSTRING, we can as well use it. | Alexander von Gernler | |
ok tedu@ | |||
2007-04-13 | allow multiple -t to increase the test count. cpus are getting too fast. | Ted Unangst | |
ok grunk. with manpage from grunk and jmc | |||
2007-03-29 | Fix a cust & pasto | Todd C. Miller | |
Correctly compute amount of base64 padding in checklist mode |