summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 2154e1ebf..a2599dab9 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -7,7 +7,7 @@
7 */ 7 */
8 8
9#include "includes.h" 9#include "includes.h"
10RCSID("$Id: ssh-keygen.c,v 1.16 2000/05/01 11:10:34 damien Exp $"); 10RCSID("$Id: ssh-keygen.c,v 1.17 2000/05/07 02:03:19 damien Exp $");
11 11
12#include <openssl/evp.h> 12#include <openssl/evp.h>
13#include <openssl/pem.h> 13#include <openssl/pem.h>
@@ -76,7 +76,8 @@ ask_filename(struct passwd *pw, const char *prompt)
76{ 76{
77 char buf[1024]; 77 char buf[1024];
78 snprintf(identity_file, sizeof(identity_file), "%s/%s", 78 snprintf(identity_file, sizeof(identity_file), "%s/%s",
79 pw->pw_dir, SSH_CLIENT_IDENTITY); 79 pw->pw_dir,
80 dsa_mode ? SSH_CLIENT_ID_DSA: SSH_CLIENT_IDENTITY);
80 printf("%s (%s): ", prompt, identity_file); 81 printf("%s (%s): ", prompt, identity_file);
81 fflush(stdout); 82 fflush(stdout);
82 if (fgets(buf, sizeof(buf), stdin) == NULL) 83 if (fgets(buf, sizeof(buf), stdin) == NULL)
@@ -491,8 +492,7 @@ do_change_comment(struct passwd *pw)
491void 492void
492usage(void) 493usage(void)
493{ 494{
494 printf("ssh-keygen version %s\n", SSH_VERSION); 495 printf("Usage: %s [-lpqxXydc] [-b bits] [-f file] [-C comment] [-N new-pass] [-P pass]\n", __progname);
495 printf("Usage: %s [-b bits] [-c] [-d] [-f file] [-l] [-p] [-q] [-x] [-y] [-C comment] [-N new-pass] [-P pass] [-X]\n", __progname);
496 exit(1); 496 exit(1);
497} 497}
498 498