summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tokeninit
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2007-03-15 22:31:14 +0000
committerjmc <jmc@openbsd.org>2007-03-15 22:31:14 +0000
commitd4acc1c4d3f902a3ce31808ba9c8b324e6781d97 (patch)
treefbe46b70fdfaf2e129ae6feecb7ab435766b7a41 /usr.sbin/tokeninit
parentsimplify synopsis/usage() and sort options. also fixes documentation/5411 (diff)
downloadwireguard-openbsd-d4acc1c4d3f902a3ce31808ba9c8b324e6781d97.tar.xz
wireguard-openbsd-d4acc1c4d3f902a3ce31808ba9c8b324e6781d97.zip
simplify synopsis/usage() and sort options;
from Igor Sobrado
Diffstat (limited to 'usr.sbin/tokeninit')
-rw-r--r--usr.sbin/tokeninit/tokeninit.811
-rw-r--r--usr.sbin/tokeninit/tokeninit.c4
2 files changed, 6 insertions, 9 deletions
diff --git a/usr.sbin/tokeninit/tokeninit.8 b/usr.sbin/tokeninit/tokeninit.8
index 33336f1d075..551e1bb0b29 100644
--- a/usr.sbin/tokeninit/tokeninit.8
+++ b/usr.sbin/tokeninit/tokeninit.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tokeninit.8,v 1.7 2003/11/26 20:25:27 jmc Exp $
+.\" $OpenBSD: tokeninit.8,v 1.8 2007/03/15 22:33:22 jmc Exp $
.\"
.\" Copyright (c) 1995 Migration Associates Corporation. All rights reserved.
.\"
@@ -42,12 +42,9 @@
.Nd "modify or add user in ActivCard, CRYPTOCard, or SNK-004 authentication system"
.Sh SYNOPSIS
.Nm tokeninit
-.Op Fl f
-.Op Fl h
+.Op Fl fhsv
.Op Fl m Ar mode
-.Op Fl s
-.Op Fl v
-.Ar user_ID
+.Ar user
.Op Ar ...
.Sh DESCRIPTION
The
@@ -99,7 +96,7 @@ Read the shared secret as a 16 digit hexadecimal integer rather than
a sequence of 8 octets.
This is not supported when invoked as
.Nm snkinit .
-.It Fl m
+.It Fl m Ar mode
Specify the input modes allowed for this user.
Possible modes are decimal (dec), hexadecimal (hex), phonebook (phone),
and reduced-input (rim).
diff --git a/usr.sbin/tokeninit/tokeninit.c b/usr.sbin/tokeninit/tokeninit.c
index 872cd63c921..ba8f490b798 100644
--- a/usr.sbin/tokeninit/tokeninit.c
+++ b/usr.sbin/tokeninit/tokeninit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tokeninit.c,v 1.5 2002/05/27 06:33:51 deraadt Exp $ */
+/* $OpenBSD: tokeninit.c,v 1.6 2007/03/15 22:33:22 jmc Exp $ */
/*-
* Copyright (c) 1995 Migration Associates Corp. All Rights Reserved
@@ -115,7 +115,7 @@ main(int argc, char **argv)
break;
default:
fprintf(stderr,
- "Usage: %sinit [-f%ssv] username [ username ... ]\n",
+ "usage: %sinit [-f%ssv] [-m mode] user [...]\n",
tt->name, (tt->options & TOKEN_HEXINIT) ? "h" : "");
exit(1);
}