From 2703095deabe1883d7dda3e95852f52097d54bf4 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 2 May 2004 17:53:30 +0000 Subject: Add support for cksum (3 varieties), md4, sha256, sha384, and sha512. Consequently, cksum moves becomes a link to md5 and moves to /bin. The cksum man page could use some polishing. --- bin/md5/sha1.1 | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'bin/md5/sha1.1') diff --git a/bin/md5/sha1.1 b/bin/md5/sha1.1 index e9caf1ba0cd..ce6f89cba08 100644 --- a/bin/md5/sha1.1 +++ b/bin/md5/sha1.1 @@ -1,6 +1,6 @@ -.\" $OpenBSD: sha1.1,v 1.16 2003/06/17 21:56:23 millert Exp $ +.\" $OpenBSD: sha1.1,v 1.17 2004/05/02 17:53:29 millert Exp $ .\" -.\" Copyright (c) 2003 Todd C. Miller +.\" Copyright (c) 2003, 2004 Todd C. Miller .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above @@ -18,7 +18,7 @@ .\" Agency (DARPA) and Air Force Research Laboratory, Air Force .\" Materiel Command, USAF, under agreement number F39502-99-1-0512. .\" -.Dd June 4, 2001 +.Dd Aprile 30, 2004 .Dt SHA1 1 .Os .Sh NAME @@ -29,7 +29,7 @@ .Oo .Fl p | Fl t | Fl x | .Fl s Ar string | -.Fl c Ar [ file ... ] | +.Fl c Ar [ checklist ... ] | .Ar file ... .Oc .Sh DESCRIPTION @@ -53,16 +53,14 @@ The options are as follows: .It Fl s Ar string Prints a checksum of the given .Ar string . -.It Fl c Ar [ file ... ] -Compares all checksums in -.Ar file -with newly computed checksums for the files mentioned in -.Ar file . +.It Fl c Ar [ checklist ... ] +Compares all checksums contained in the file +.Ar checklist +with newly computed checksums for the corresponding files. Output consists of the digest used, the file name, and an OK or FAILED for the result of the comparison. -This will validate any of the supported checksums in -.Ar file , -including MD5 and RMD-160. +This will validate any of the supported checksums (see +.Xr cksum 1 ). If no file is given, stdin is used. .It Fl p Echoes stdin to stdout and appends the -- cgit v1.2.3