From 2c2e09fe901b540fa2fc4ec83bcd85b87468b0ad Mon Sep 17 00:00:00 2001 From: wollman Date: Fri, 26 Feb 1999 18:44:56 +0000 Subject: 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. --- usr.sbin/mtree/misc.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'usr.sbin/mtree/misc.c') 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 @@ -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}, -- cgit v1.1