summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2013-03-09 21:08:37 +0000
committertobias <tobias@openbsd.org>2013-03-09 21:08:37 +0000
commit2d5768148075efc81475c78d8c28df10de89031e (patch)
tree7e8dc43f4acf9f1abb2728a1b00a98ef90fd3dde
parentDescribe interaction between write and O_APPEND. (diff)
downloadwireguard-openbsd-2d5768148075efc81475c78d8c28df10de89031e.tar.xz
wireguard-openbsd-2d5768148075efc81475c78d8c28df10de89031e.zip
Mention -v in manpage and usage.
With input from jmc. ok jmc
-rw-r--r--usr.bin/gzsig/gzsig.118
-rw-r--r--usr.bin/gzsig/sign.c6
-rw-r--r--usr.bin/gzsig/verify.c6
3 files changed, 19 insertions, 11 deletions
diff --git a/usr.bin/gzsig/gzsig.1 b/usr.bin/gzsig/gzsig.1
index 9d216bc6748..ca11608c3d8 100644
--- a/usr.bin/gzsig/gzsig.1
+++ b/usr.bin/gzsig/gzsig.1
@@ -1,5 +1,5 @@
-.\" $OpenBSD: gzsig.1,v 1.13 2011/09/29 17:57:09 jmc Exp $
-.\" $Id: gzsig.1,v 1.13 2011/09/29 17:57:09 jmc Exp $
+.\" $OpenBSD: gzsig.1,v 1.14 2013/03/09 21:08:37 tobias Exp $
+.\" $Id: gzsig.1,v 1.14 2013/03/09 21:08:37 tobias Exp $
.\"
.\" Copyright (c) 2001 Dug Song <dugsong@arbor.net>
.\" Copyright (c) 2001 Arbor Networks, Inc.
@@ -28,7 +28,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: September 29 2011 $
+.Dd $Mdocdate: March 9 2013 $
.Dt GZSIG 1
.Os
.Sh NAME
@@ -37,13 +37,13 @@
.Sh SYNOPSIS
.Nm gzsig
.Ic sign
-.Op Fl q
+.Op Fl q | v
.Op Fl f Ar secret_file
.Ar privkey
.Op Ar
.Nm gzsig
.Ic verify
-.Op Fl q
+.Op Fl q | v
.Op Fl f Ar secret_file
.Ar pubkey
.Op Ar
@@ -72,6 +72,14 @@ Indicates that the passphrase for the key should be read from
instead of being supplied manually.
.It Fl q
Enable quiet mode.
+.It Fl v
+Enable verbose mode.
+This is the default.
+.Fl q
+and
+.Fl v
+are mutually exclusive;
+the last one specified takes precedence.
.It Ic sign
Sign the input using the private key in
.Ar privkey .
diff --git a/usr.bin/gzsig/sign.c b/usr.bin/gzsig/sign.c
index 8e196a2d0b0..7228bff7767 100644
--- a/usr.bin/gzsig/sign.c
+++ b/usr.bin/gzsig/sign.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sign.c,v 1.9 2007/10/12 19:52:06 jasper Exp $ */
+/* $OpenBSD: sign.c,v 1.10 2013/03/09 21:08:37 tobias Exp $ */
/*
* sign.c
@@ -185,8 +185,8 @@ embed_signature(struct key *key, FILE *fin, FILE *fout)
void
sign_usage(void)
{
- fprintf(stderr, "Usage: %s sign [-q] [-f secret_file] privkey [file ...]\n",
- __progname);
+ fprintf(stderr, "Usage: %s sign [-q | -v] [-f secret_file] privkey "
+ "[file ...]\n", __progname);
}
int
diff --git a/usr.bin/gzsig/verify.c b/usr.bin/gzsig/verify.c
index 9063887c313..d58bec8e461 100644
--- a/usr.bin/gzsig/verify.c
+++ b/usr.bin/gzsig/verify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: verify.c,v 1.7 2007/10/12 19:52:06 jasper Exp $ */
+/* $OpenBSD: verify.c,v 1.8 2013/03/09 21:08:37 tobias Exp $ */
/*
* verify.c
@@ -144,8 +144,8 @@ verify_signature(struct key *key, FILE *fin)
void
verify_usage(void)
{
- fprintf(stderr, "Usage: %s verify [-q] [-f secret_file] pubkey [file ...]\n",
- __progname);
+ fprintf(stderr, "Usage: %s verify [-q | -v] [-f secret_file] pubkey "
+ "[file ...]\n", __progname);
}
void