summaryrefslogtreecommitdiff
path: root/bin/md5/rmd160.1
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2006-11-16 23:53:42 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2006-11-16 23:53:42 +0000
commitf90ac2555337c72651bc65977807ddf57df6db9a (patch)
tree305f5fb5856dab3bda00b60e3fcf7516fa1cdca0 /bin/md5/rmd160.1
parent9514f886f4724780eda05564062e65e3c8506b99 (diff)
Add -r and -q options similar to what is supported by FreeBSD's md5
OK deraadt@ ckuethe@
Diffstat (limited to 'bin/md5/rmd160.1')
-rw-r--r--bin/md5/rmd160.111
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/md5/rmd160.1 b/bin/md5/rmd160.1
index 3ddabbc732a..90cd9e71924 100644
--- a/bin/md5/rmd160.1
+++ b/bin/md5/rmd160.1
@@ -1,6 +1,6 @@
-.\" $OpenBSD: rmd160.1,v 1.17 2004/05/04 18:32:51 jmc Exp $
+.\" $OpenBSD: rmd160.1,v 1.18 2006/11/16 23:53:41 millert Exp $
.\"
-.\" Copyright (c) 2003, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
+.\" Copyright (c) 2003, 2004, 2006 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
.\" 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 rmd160
+.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 RMD-160
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 .