diff options
author | 2003-02-14 17:33:14 +0000 | |
---|---|---|
committer | 2003-02-14 17:33:14 +0000 | |
commit | 2214524afce005b4d143a72a86187fda01eda100 (patch) | |
tree | bb1e6ecb86e4eb29b93bcee837f7d289bb7a8d35 | |
parent | man page is under same license as the program (diff) | |
download | wireguard-openbsd-2214524afce005b4d143a72a86187fda01eda100.tar.xz wireguard-openbsd-2214524afce005b4d143a72a86187fda01eda100.zip |
Add a 2-clause BSD license. These files are based on the md5.1
from FreeBSD which says it is public domain so there should be no
license conflict.
-rw-r--r-- | bin/md5/md5.1 | 39 | ||||
-rw-r--r-- | bin/md5/rmd160.1 | 39 | ||||
-rw-r--r-- | bin/md5/sha1.1 | 39 |
3 files changed, 111 insertions, 6 deletions
diff --git a/bin/md5/md5.1 b/bin/md5/md5.1 index 88185b62197..cf283455432 100644 --- a/bin/md5/md5.1 +++ b/bin/md5/md5.1 @@ -1,4 +1,27 @@ -.\" $OpenBSD: md5.1,v 1.11 2001/06/03 17:51:29 millert Exp $ +.\" $OpenBSD: md5.1,v 1.12 2003/02/14 17:33:14 millert Exp $ +.\" +.\" Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com> +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +.\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +.\" THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +.\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +.\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .Dd June 4, 2001 .Dt MD5 1 @@ -10,7 +33,9 @@ .Nm md5 .Oo .Fl p | Fl t | Fl x | -.Fl s Ar string | Ar file ... +.Fl s Ar string | +.Fl c Ar [ file ... ] | +.Ar file ... .Oc .Sh DESCRIPTION .Nm @@ -33,6 +58,16 @@ 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 the +.Ar file +with new computed checksums for the files mentioned in the +.Ar file . +Output consists of which digest was used, the file name, +and an OK or FAILED for the result of the comparison. This will +validate any of the supported checksums in the +.Ar file +including RMD-160 and SHA-1. If no file is given, stdin is used. .It Fl p Echos stdin to stdout and appends the .Em MD5 diff --git a/bin/md5/rmd160.1 b/bin/md5/rmd160.1 index c53e4de9c1b..2ffba6bbdc3 100644 --- a/bin/md5/rmd160.1 +++ b/bin/md5/rmd160.1 @@ -1,4 +1,27 @@ -.\" $OpenBSD: rmd160.1,v 1.9 2001/09/06 14:46:47 mpech Exp $ +.\" $OpenBSD: rmd160.1,v 1.10 2003/02/14 17:33:14 millert Exp $ +.\" +.\" Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com> +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +.\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +.\" THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +.\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +.\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .Dd June 4, 2001 .Dt RMD160 1 @@ -10,7 +33,9 @@ .Nm rmd160 .Oo .Fl p | Fl t | Fl x | -.Fl s Ar string | Ar file ... +.Fl s Ar string | +.Fl c Ar [ file ... ] | +.Ar file ... .Oc .Sh DESCRIPTION .Nm @@ -33,6 +58,16 @@ 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 the +.Ar file +with new computed checksums for the files mentioned in the +.Ar file . +Output consists of which digest was used, the file name, +and an OK or FAILED for the result of the comparison. This will +validate any of the supported checksums in the +.Ar file +including MD5 and SHA-1. If no file is given, stdin is used. .It Fl p Echos stdin to stdout and appends the .Em RMD-160 diff --git a/bin/md5/sha1.1 b/bin/md5/sha1.1 index c3416cee7ca..73e253456c6 100644 --- a/bin/md5/sha1.1 +++ b/bin/md5/sha1.1 @@ -1,4 +1,27 @@ -.\" $OpenBSD: sha1.1,v 1.10 2001/10/29 18:08:29 millert Exp $ +.\" $OpenBSD: sha1.1,v 1.11 2003/02/14 17:33:15 millert Exp $ +.\" +.\" Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com> +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +.\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +.\" THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +.\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +.\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .Dd June 4, 2001 .Dt SHA1 1 @@ -10,7 +33,9 @@ .Nm sha1 .Oo .Fl p | Fl t | Fl x | -.Fl s Ar string | Ar file ... +.Fl s Ar string | +.Fl c Ar [ file ... ] | +.Ar file ... .Oc .Sh DESCRIPTION .Nm @@ -33,6 +58,16 @@ 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 the +.Ar file +with new computed checksums for the files mentioned in the +.Ar file . +Output consists of which digest was used, the file name, +and an OK or FAILED for the result of the comparison. This will +validate any of the supported checksums in the +.Ar file +including MD5 and RMD-160. If no file is given, stdin is used. .It Fl p Echos stdin to stdout and appends the .Em SHA-1 |