summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-08-06 23:49:06 +0200
committerBen Lindstrom <mouring@eviladmin.org>2001-08-06 23:49:06 +0200
commit97be31e6ff07b4d396e95b0799dca754f013e1a8 (patch)
tree5fcd281244f24336f17cb06c4ed834906bac9aa3
parent - jakob@cvs.openbsd.org 2001/08/02 08:58:35 (diff)
downloadopenssh-97be31e6ff07b4d396e95b0799dca754f013e1a8.tar.xz
openssh-97be31e6ff07b4d396e95b0799dca754f013e1a8.zip
- jakob@cvs.openbsd.org 2001/08/02 15:06:52
[ssh-keygen.c] more verbose usage(). ok markus@
-rw-r--r--ChangeLog5
-rw-r--r--ssh-keygen.c25
2 files changed, 26 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c3beb03d..3a1dfce30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -110,6 +110,9 @@
- jakob@cvs.openbsd.org 2001/08/02 08:58:35
[ssh-keygen.c]
change -u (upload smartcard key) to -U. ok markus@
+ - jakob@cvs.openbsd.org 2001/08/02 15:06:52
+ [ssh-keygen.c]
+ more verbose usage(). ok markus@
20010803
- (djm) Fix interrupted read in entropy gatherer. Spotted by markus@ on
@@ -6220,4 +6223,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
-$Id: ChangeLog,v 1.1454 2001/08/06 21:46:54 mouring Exp $
+$Id: ChangeLog,v 1.1455 2001/08/06 21:49:06 mouring Exp $
diff --git a/ssh-keygen.c b/ssh-keygen.c
index beffa928c..faa27d219 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-keygen.c,v 1.76 2001/08/02 08:58:35 jakob Exp $");
+RCSID("$OpenBSD: ssh-keygen.c,v 1.77 2001/08/02 15:06:52 jakob Exp $");
#include <openssl/evp.h>
#include <openssl/pem.h>
@@ -792,8 +792,27 @@ do_change_comment(struct passwd *pw)
static void
usage(void)
{
- printf("Usage: %s [-ceilpqyB] [-t type] [-b bits] [-f file] [-C comment] "
- "[-N new-pass] [-P pass]\n", __progname);
+ fprintf(stderr, "Usage: %s [options]\n", __progname);
+ fprintf(stderr, "Options:\n");
+ fprintf(stderr, " -b bits Number of bits in the key to create.\n");
+ fprintf(stderr, " -c Change comment in private and public key files.\n");
+ fprintf(stderr, " -e Convert OpenSSH to IETF SECSH key file.\n");
+ fprintf(stderr, " -f filename Filename of the key file.\n");
+ fprintf(stderr, " -i Convert IETF SECSH to OpenSSH key file.\n");
+ fprintf(stderr, " -l Show fingerprint of key file.\n");
+ fprintf(stderr, " -p Change passphrase of private key file.\n");
+ fprintf(stderr, " -q Quiet.\n");
+ fprintf(stderr, " -y Read private key file and print public key.\n");
+ fprintf(stderr, " -t type Specify type of key to create.\n");
+ fprintf(stderr, " -B Show bubblebabble digest of key file.\n");
+ fprintf(stderr, " -C comment Provide new comment.\n");
+ fprintf(stderr, " -N phrase Provide new passphrase.\n");
+ fprintf(stderr, " -P phrase Provide old passphrase.\n");
+#ifdef SMARTCARD
+ fprintf(stderr, " -D reader Download public key from smartcard.\n");
+ fprintf(stderr, " -U reader Upload private key to smartcard.\n");
+#endif /* SMARTCARD */
+
exit(1);
}