Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add explicit casts to double to quiet a clang warning. | 2020-10-19 | 1 | -2/+2 | |
| | | | | OK deraddt@ | ||||
* | Use ferror() to check for write error, not the fflush() return value. | 2020-10-03 | 1 | -2/+3 | |
| | | | | | We can't rely on buffering to catch write errors in fflush(). Based on a diff from Demi M. Obenour, OK kn@ | ||||
* | freezero() is of no use here, the computed digest is not a secret. | 2019-05-18 | 1 | -2/+2 | |
| | | | | ok millert@ | ||||
* | I am retiring my old email address; replace it with my OpenBSD one. | 2019-01-25 | 4 | -9/+9 | |
| | |||||
* | fgetln(3) -> getline(3); from Lauri Tirkkonen; ok millert@ | 2018-09-07 | 1 | -21/+20 | |
| | |||||
* | CKSUM_DIGEST_STRING_LENGTH bounding didn't include full range of size_t | 2018-02-05 | 1 | -2/+2 | |
| | | | | | and NUL ok millert krw tb | ||||
* | Use getrusage(2) for the built-in time trial instead of getttimeofday(2). | 2017-09-11 | 1 | -5/+7 | |
| | | | | | | This makes it possible to measure just the ellapsed user time, which is what we really care about when benchmarking an algorithm. OK deraadt@ | ||||
* | obvious use for freezero() | 2017-05-22 | 1 | -3/+2 | |
| | |||||
* | In -C mode, process all checksums that match the specified file(s), | 2017-04-26 | 1 | -6/+22 | |
| | | | | not just the first one that matches. OK deraadt@ | ||||
* | SHA-1 collisions have now been found so update some man pages. As noted by | 2017-02-23 | 1 | -9/+4 | |
| | | | | | | | | minek van on misc@. Thanks. ok tb@, tj@ (and jmc@ is ok with the diff but can't ok the technical content). | ||||
* | Move declaration of an 'i' inside the scope of its use. Which in | 2016-12-16 | 1 | -4/+3 | |
| | | | | | | | turn is inside an #ifdef. Thus making the code clearer by eliminating an #ifdef in the middle of the declarations. Suggested by millert@ | ||||
* | Eliminate some gcc warnings about 'unused variables', mostly by | 2016-12-16 | 1 | -2/+5 | |
| | | | | | | adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately) | ||||
* | sync the description of -q with that of cksum.1; | 2016-09-20 | 1 | -3/+5 | |
| | | | | | | from bytevolcano ok millert | ||||
* | add sha512/256 support to check that the libc code is right :) | 2016-09-03 | 2 | -4/+15 | |
| | |||||
* | Pull in <sys/time.h> for gettimeofday() | 2016-08-26 | 1 | -1/+2 | |
| | |||||
* | all of the update functions take a size_t. correct type and casts. | 2016-07-29 | 1 | -18/+17 | |
| | | | | ok deraadt millert | ||||
* | for some time now mandoc has not required MLINKS to function | 2016-03-30 | 1 | -4/+1 | |
| | | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung | ||||
* | Remove NULL-check before free(). ok tb@ | 2015-12-09 | 1 | -3/+2 | |
| | |||||
* | normalize the ordering of tame requests (particularily, "rpath wpath cpath", | 2015-10-10 | 1 | -2/+2 | |
| | | | | | | | 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. | ||||
* | Change all tame callers to namechange to pledge(2). | 2015-10-09 | 1 | -5/+5 | |
| | |||||
* | Repair tame() error check to be == -1 | 2015-10-04 | 1 | -2/+2 | |
| | |||||
* | right at startup, this can tame "stdio cpath rpath wpath". after getopt | 2015-10-03 | 1 | -1/+7 | |
| | | | | | | -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. | ||||
* | remove CAVEATS: the information therein is already (and probably more usefully) | 2015-09-23 | 1 | -7/+2 | |
| | | | | | | included at the start of this page; ok tedu | ||||
* | cleanup of the SMALL hiding from Mathias Svensson | 2015-01-19 | 1 | -2/+4 | |
| | |||||
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 1 | -5/+5 | |
| | | | | | | | | | 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) | ||||
* | obvious cases of missing NAME .Nm entries | 2014-12-04 | 1 | -3/+6 | |
| | |||||
* | Replace all queue *_END macro calls except CIRCLEQ_END with NULL. | 2014-09-13 | 1 | -2/+2 | |
| | | | | | | | | 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@ | ||||
* | Fix memory leak in digest_file() on ferror(). OK tedu@ lteo@ | 2014-06-19 | 1 | -1/+5 | |
| | |||||
* | Ignore the -b option if cksum is called as-is (e.g. "cksum -b /bsd") | 2014-03-26 | 1 | -2/+2 | |
| | | | | | | | as documented on the cksum(1) man page. "looks right" deraadt@ ok millert@ | ||||
* | missed a turd | 2014-03-20 | 1 | -9/+1 | |
| | |||||
* | purge sum and sysvsum code. ok deraadt jmc lteo millert | 2014-03-20 | 5 | -269/+18 | |
| | | | | a few initial leftovers spotted by naddy | ||||
* | remove insecure MD4 checksum algorithm; ok tedu@, man page ok jmc@ | 2014-03-20 | 2 | -17/+5 | |
| | | | | | "A collision attack published in 2007 can find collisions for full MD4 in less than two hash operations." | ||||
* | use Ex; | 2014-03-17 | 1 | -8/+3 | |
| | |||||
* | When using the -C option, exit with an exit status of 1 if any of the | 2014-03-07 | 3 | -20/+33 | |
| | | | | | | files specified on the command line do not exist in the checklist. ok deraadt@ tedu@ | ||||
* | Add MISSING to the list of possible results of a checklist comparison | 2014-01-30 | 1 | -3/+3 | |
| | | | | (md5.1 already has this). | ||||
* | bump the year for ISO/IEC 8802:3 from 1989 to 1996; | 2014-01-24 | 1 | -3/+3 | |
| | | | | | | ingo recommends not defining a new St macro for every revision here ok sobrado schwarze | ||||
* | Do not use .Ar for fixed strings, it is intended for argument placeholders. | 2014-01-20 | 1 | -38/+9 | |
| | | | | | | We could switch to .Cm, but jmc@ thinks that just removing the markup from the algorith names is better in this case. Otherwise, the total amount of markup could be considered excessive. | ||||
* | The strings "1" and "2" are not placeholders for arguments, | 2014-01-20 | 1 | -5/+5 | |
| | | | | | but have to be given verbatim on the command line, so use .Cm. Found while testing mandocdb(8), ok jmc@. | ||||
* | add -C to the man page, and adjust usage(); | 2014-01-15 | 2 | -6/+18 | |
| | | | | ok lteo | ||||
* | Add support for a -C option. It works on a checklist like -c but only | 2014-01-15 | 2 | -16/+51 | |
| | | | | | | | | | 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@ | ||||
* | Also move case 'c' into the #ifdef for a smaller binary. It will fall into | 2014-01-12 | 1 | -4/+4 | |
| | | | | | default, giving a nice failure. I have not removed -c from the usage() or getopt() because it is too much butchering... | ||||
* | use -DSHA2_ONLY to be more clear about what we are butchering | 2014-01-11 | 1 | -21/+21 | |
| | | | | idea from tedu | ||||
* | depluralize | 2014-01-10 | 1 | -2/+2 | |
| | | | | ok jmc | ||||
* | catch up to the fact that md5/sha* got merged, and document -c consistently; | 2014-01-10 | 3 | -40/+27 | |
| | | | | | | some style and cleanup tweaks while here ok deraadt | ||||
* | Add MISSING to the list of possible results of a checklist comparison. | 2014-01-10 | 1 | -2/+2 | |
| | |||||
* | When using a checklist, print MISSING for non-existent files. | 2014-01-10 | 1 | -2/+4 | |
| | | | | | | Based on an earlier diff by tedu@ Requested by deraadt@ OK deraadt@ | ||||
* | tedu merged the hash manual pages back together. This goes even further, | 2014-01-10 | 4 | -293/+53 | |
| | | | | repairing the documentation for the -c option. | ||||
* | the -c option is really a mode change, incompatible with other options. | 2014-01-10 | 4 | -17/+27 | |
| | | | | | | (there are some others too, but -c is particularly misleading.) split it out in synopsis and usage. ok deraadt | ||||
* | Fix wrapping of usage message for cksum. | 2014-01-08 | 1 | -3/+3 | |
| | |||||
* | err() not errx() when fopen fails. | 2014-01-08 | 1 | -6/+6 | |
| |