diff options
author | wollman <wollman@FreeBSD.org> | 1999-02-26 18:44:56 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1999-02-26 18:44:56 +0000 |
commit | 2c2e09fe901b540fa2fc4ec83bcd85b87468b0ad (patch) | |
tree | 80bb58430cb013a059396dde14c1e348f3cef4ee /usr.sbin/mtree/misc.c | |
parent | 563552afce2240b94a832861f16a3ebb3c17dccb (diff) | |
download | FreeBSD-src-2c2e09fe901b540fa2fc4ec83bcd85b87468b0ad.zip FreeBSD-src-2c2e09fe901b540fa2fc4ec83bcd85b87468b0ad.tar.gz |
Add support for SHA-1 and RIPEMD160, now that libmd includes them. Make
all of the hashes (including MD5) conditionalized in case we want
to turn one of them off later.
Diffstat (limited to 'usr.sbin/mtree/misc.c')
-rw-r--r-- | usr.sbin/mtree/misc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/mtree/misc.c b/usr.sbin/mtree/misc.c index c8318ec..339804a 100644 --- a/usr.sbin/mtree/misc.c +++ b/usr.sbin/mtree/misc.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: misc.c,v 1.4 1997/10/01 06:30:01 charnier Exp $"; + "$Id: misc.c,v 1.5 1998/06/05 14:43:40 peter Exp $"; #endif /*not lint */ #include <sys/types.h> @@ -64,10 +64,18 @@ static KEY keylist[] = { {"gname", F_GNAME, NEEDVALUE}, {"ignore", F_IGN, 0}, {"link", F_SLINK, NEEDVALUE}, +#ifdef MD5 {"md5digest", F_MD5, NEEDVALUE}, +#endif {"mode", F_MODE, NEEDVALUE}, {"nlink", F_NLINK, NEEDVALUE}, {"nochange", F_NOCHANGE, 0}, +#ifdef RMD160 + {"ripemd160digest", F_RMD160, NEEDVALUE}, +#endif +#ifdef SHA1 + {"sha1digest", F_SHA1, NEEDVALUE}, +#endif {"size", F_SIZE, NEEDVALUE}, {"time", F_TIME, NEEDVALUE}, {"type", F_TYPE, NEEDVALUE}, |