summaryrefslogtreecommitdiff
path: root/bin/md5
AgeCommit message (Collapse)Author
2020-10-19Add explicit casts to double to quiet a clang warning.Todd C. Miller
OK deraddt@
2020-10-03Use ferror() to check for write error, not the fflush() return value.Todd C. Miller
We can't rely on buffering to catch write errors in fflush(). Based on a diff from Demi M. Obenour, OK kn@
2019-05-18freezero() is of no use here, the computed digest is not a secret.Otto Moerbeek
ok millert@
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.Todd C. Miller
2018-09-07fgetln(3) -> getline(3); from Lauri Tirkkonen; ok millert@cheloha
2018-02-05CKSUM_DIGEST_STRING_LENGTH bounding didn't include full range of size_tTheo de Raadt
and NUL ok millert krw tb
2017-09-11Use 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-22obvious use for freezero()Theo de Raadt
2017-04-26In -C mode, process all checksums that match the specified file(s),Todd C. Miller
not just the first one that matches. OK deraadt@
2017-02-23SHA-1 collisions have now been found so update some man pages. As noted byDaniel Dickman
minek van on misc@. Thanks. ok tb@, tj@ (and jmc@ is ok with the diff but can't ok the technical content).
2016-12-16Move declaration of an 'i' inside the scope of its use. Which inKenneth 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-16Eliminate some gcc warnings about 'unused variables', mostly byKenneth R Westerback
adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately)
2016-09-20sync the description of -q with that of cksum.1;Jason McIntyre
from bytevolcano ok millert
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
ok deraadt millert
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
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
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
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-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
-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-09-23remove CAVEATS: the information therein is already (and probably more usefully)Jason McIntyre
included at the start of this page; ok tedu
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
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-12-04obvious cases of missing NAME .Nm entriesIngo Schwarze
2014-09-13Replace 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-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
as documented on the cksum(1) man page. "looks right" deraadt@ ok millert@
2014-03-20missed a turdTed Unangst
2014-03-20purge sum and sysvsum code. ok deraadt jmc lteo millertTed Unangst
a few initial leftovers spotted by naddy
2014-03-20remove 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-17use Ex;Jason McIntyre
2014-03-07When using the -C option, exit with an exit status of 1 if any of theLawrence Teo
files specified on the command line do not exist in the checklist. ok deraadt@ tedu@
2014-01-30Add MISSING to the list of possible results of a checklist comparisonLawrence Teo
(md5.1 already has this).
2014-01-24bump the year for ISO/IEC 8802:3 from 1989 to 1996;Jason McIntyre
ingo recommends not defining a new St macro for every revision here ok sobrado schwarze
2014-01-20Do not use .Ar for fixed strings, it is intended for argument placeholders.Ingo Schwarze
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.
2014-01-20The strings "1" and "2" are not placeholders for arguments,Ingo Schwarze
but have to be given verbatim on the command line, so use .Cm. Found while testing mandocdb(8), ok jmc@.
2014-01-15add -C to the man page, and adjust usage();Jason McIntyre
ok lteo
2014-01-15Add support for a -C option. It works on a checklist like -c but onlyLawrence 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-12Also move case 'c' into the #ifdef for a smaller binary. It will fall intoTheo 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-11use -DSHA2_ONLY to be more clear about what we are butcheringTheo de Raadt
idea from tedu
2014-01-10depluralizeTheo de Raadt
ok jmc
2014-01-10catch 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-10Add MISSING to the list of possible results of a checklist comparison.Lawrence Teo
2014-01-10When 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-10tedu merged the hash manual pages back together. This goes even further,Theo de Raadt
repairing the documentation for the -c option.
2014-01-10the -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-08Fix wrapping of usage message for cksum.Todd C. Miller
2014-01-08err() not errx() when fopen fails.Todd C. Miller