History log of /freebsd-9.3-release/sbin/md5/md5.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 239937 31-Aug-2012 delphij

Revert 239931 and 239932 until I figure out why it breaks on stable branches
but not on -HEAD.

Noticed by: tinderbox
Pointy hat to: delphij


# 239931 30-Aug-2012 delphij

MFC r238964:

Teach md5(1) about sha512.


# 235309 11-May-2012 eadler

MFC r235205:
Document the -c option in --help output

Approved by: cperciva (implicit)


# 229680 06-Jan-2012 eadler

MFC r227488:

- add "check" option to MD5 and friends to compare files against known hash.

Approved by: cperciva


# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 182672 02-Sep-2008 kevlo

Use RUSAGE_SELF for the current process instead of hardcoded value


# 176095 07-Feb-2008 obrien

style(9) (verifed no-change in .o's)


# 154479 17-Jan-2006 phk

Fix an 11 year old mistake: Let the hash functions take a void* instead
of unsigned char* argument.


# 143334 09-Mar-2005 cperciva

In light of the recent 2^69 operation collision-finding attack on SHA1,
add support for SHA256.

Tested on: i386, sparc64
Tested using: NIST test vectors, built-in tests
X-MFC-after: 5.4-RELEASE


# 130918 22-Jun-2004 eik

fix handling of an unknown progeam name

Noticed by: Joshua Goodall <joshua@roughtrade.net>
Approved by: ru


# 130351 11-Jun-2004 eik

Add sha1 and rmd160 checksum tools.

Since the algorithms are already supported in libmd,
the size increase is small when a dynamic root is used.

Approved by: joerg, ru
MFC after: 2 weeks


# 121914 02-Nov-2003 se

Set exit code to 1 in case at least one of the input files
could not be opened.


# 114589 03-May-2003 obrien

Use __FBSDID() to quiet GCC 3.3 warnings.


# 110840 14-Feb-2003 silby

Improvements to md5.c so that it uses getrusage to time
benchmarks, and prints out results in float format.


# 109870 26-Jan-2003 silby

Change the -x option so that it does an actual REAL test of
the correctness of this program. Previously, it printed out
the MD5 values of some test strings, but did not tell you
if they were correct or not!


# 88226 19-Dec-2001 phk

Fix
md5 -q -s foo
to not expect input on stdin after hashing the string.

MFC after: 1 week


# 85611 27-Oct-2001 dillon

Add missing cast for improper time_t use in computation.


# 78949 29-Jun-2001 des

Fix include ordering breakage from rev. 1.23.

Please-read-style(9): dd


# 78756 25-Jun-2001 ru

Only checksum stdin if nothing has been checksummed yet.

PR: bin/28386


# 78732 24-Jun-2001 dd

Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).


# 76988 22-May-2001 ru

Fix argument processing.
Make this compile with WARNS=2.

PR: bin/27524
MFC after: 3 days


# 68503 08-Nov-2000 obrien

Update usage().

Submitted by: nectar


# 54109 03-Dec-1999 obrien

Add -q quite mode.


# 53092 11-Nov-1999 obrien

Make `-r -s' also match the BSDI output.


# 53060 09-Nov-1999 obrien

Change the "-r" output format to match BSDI's default output format.


# 52949 07-Nov-1999 obrien

Add a new "-r" (right) option that reverses the order a filename and the
hash is printed. This aids visual diffs.


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48953 20-Jul-1999 billf

Since we are using strlen() let's assign it to the correct type and
include the proper header.


# 46226 01-May-1999 kris

Fixes for -t option:

* Don't buffer "Digesting..." output - flush it immediately.
* Increase the number of repetitions by a factor of 100, and the block size by
a factor of 10 so as to give meaningful results on modern machines (108
seconds on my P120, and ~26 seconds on a P-II 350).

PR: bin/10604
Submitted by: Stanislav Shalunov <shalunov@lynxhub.lz.att.com>


# 37421 06-Jul-1998 charnier

Correct use of .Nm. Spelling. Add rcsid, remove unused #includes, use err(3).


# 32086 29-Dec-1997 steve

Fix a few style nits from previous commit.

Submitted by: Bruce Evans <bde@zeta.org.au>


# 32074 29-Dec-1997 steve

Get md5(1) to use getopt(3). Also some minor -Wall cleaning
while here.

PR: 5387
Submitted by: Matthew Hunt <mph@pobox.com>


# 22990 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21763 16-Jan-1997 phk

Trivial fix for braino.
Reviewed by: phk
Submitted by: Martin Ibert <mib@ppe.bb-data.de>


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 19168 25-Oct-1996 bde

Moved #include of <sys/types.h> earlier so that this compiles when
<stdio.h> doesn't (bogusly) include <sys/types.h>.

Cleaned up #includes.


# 9489 12-Jul-1995 phk

Fix to match new API. Fixes memory leak, faster.


# 8871 30-May-1995 rgrimes

Remove trailing whitespace.


# 6726 26-Feb-1995 phk

oops.


# 6725 25-Feb-1995 phk

Add a '-p' option to md5. This will save some time in generation of the
ctm deltas.


# 6562 19-Feb-1995 phk

Clean this file up so it is readable...


# 3996 29-Oct-1994 pst

This commit was generated by cvs2svn to compensate for changes in r3995,
which included commits to RCS files with non-trunk default branches.


# 3995 29-Oct-1994 pst

Incorproate version of md5 placed into public domain by RSA.