Subject: CVS commit: pkgsrc/pkgtools/digest/files
To: None <pkgsrc-changes@netbsd.org>
From: Andrew Brown <atatat@netbsd.org>
List: pkgsrc-changes
Date: 06/15/2003 00:42:30
Module Name:	pkgsrc
Committed By:	atatat
Date:		Sun Jun 15 00:42:29 UTC 2003

Modified Files:
	pkgsrc/pkgtools/digest/files: digest.c

Log Message:
Reword the guts of digest so that the entry points into the various
hashes (fooInit(), fooUpdate(), fooFinal(), and fooFile()) are in the
array of structs that list the digests we support.

This makes the code somewhat simpler, easier to patch, and makes it
much easier to add new algorithms.

Note that since this *only* changes the inner workings of the digest
program, we don't need to touch the version number.

Approved (finally) by agc.  :)


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 pkgsrc/pkgtools/digest/files/digest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.