From f90ac2555337c72651bc65977807ddf57df6db9a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 16 Nov 2006 23:53:42 +0000 Subject: Add -r and -q options similar to what is supported by FreeBSD's md5 OK deraadt@ ckuethe@ --- bin/md5/sha1.1 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'bin/md5/sha1.1') diff --git a/bin/md5/sha1.1 b/bin/md5/sha1.1 index 318ca472c06..bfb2557f336 100644 --- a/bin/md5/sha1.1 +++ b/bin/md5/sha1.1 @@ -1,6 +1,6 @@ -.\" $OpenBSD: sha1.1,v 1.19 2004/05/16 18:31:31 otto Exp $ +.\" $OpenBSD: sha1.1,v 1.20 2006/11/16 23:53:41 millert Exp $ .\" -.\" Copyright (c) 2003, 2004 Todd C. Miller +.\" Copyright (c) 2003, 2004, 2006 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 @@ -26,6 +26,7 @@ .Nd calculate a message-digest fingerprint (checksum) for a file .Sh SYNOPSIS .Nm sha1 +.Op Fl q | r .Oo .Fl p | t | x | .Fl c Oo Ar checklist ... Oc | @@ -66,6 +67,12 @@ If no file is given, stdin is used. Echoes stdin to stdout and appends the .Em SHA-1 sum to stdout. +.It Fl q +Only print the checksum (quiet mode). +.It Fl r +Reverse the format of the hash algorithm output, making +it match the output format used by +.Xr cksum 1 . .It Fl s Ar string Prints a checksum of the given .Ar string . -- cgit v1.2.3