diff options
Diffstat (limited to 'ssh-add.c')
-rw-r--r-- | ssh-add.c | 21 |
1 files changed, 14 insertions, 7 deletions
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | RCSID("$OpenBSD: ssh-add.c,v 1.44 2001/08/01 22:03:33 markus Exp $"); | 38 | RCSID("$OpenBSD: ssh-add.c,v 1.45 2001/08/03 10:31:30 jakob Exp $"); |
39 | 39 | ||
40 | #include <openssl/evp.h> | 40 | #include <openssl/evp.h> |
41 | 41 | ||
@@ -55,6 +55,9 @@ extern char *__progname; | |||
55 | char *__progname; | 55 | char *__progname; |
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | /* argv0 */ | ||
59 | extern char *__progname; | ||
60 | |||
58 | /* we keep a cache of one passphrases */ | 61 | /* we keep a cache of one passphrases */ |
59 | static char *pass = NULL; | 62 | static char *pass = NULL; |
60 | static void | 63 | static void |
@@ -195,12 +198,16 @@ list_identities(AuthenticationConnection *ac, int do_fp) | |||
195 | static void | 198 | static void |
196 | usage(void) | 199 | usage(void) |
197 | { | 200 | { |
198 | printf("Usage: ssh-add [options]\n"); | 201 | fprintf(stderr, "Usage: %s [options]\n", __progname); |
199 | printf(" -l, -L : list identities\n"); | 202 | fprintf(stderr, "Options:\n"); |
200 | printf(" -d : delete identity\n"); | 203 | fprintf(stderr, " -l List fingerprints of all identities.\n"); |
201 | printf(" -D : delete all identities\n"); | 204 | fprintf(stderr, " -L List public key parameters of all identities.\n"); |
202 | printf(" -s reader_num : add key in the smartcard in reader_num.\n"); | 205 | fprintf(stderr, " -d Delete identity.\n"); |
203 | printf(" -e reader_num : remove key in the smartcard in reader_num.\n"); | 206 | fprintf(stderr, " -D Delete all identities.\n"); |
207 | #ifdef SMARTCARD | ||
208 | fprintf(stderr, " -s reader Add key in smartcard reader.\n"); | ||
209 | fprintf(stderr, " -e reader Remove key in smartcard reader.\n"); | ||
210 | #endif | ||
204 | } | 211 | } |
205 | 212 | ||
206 | int | 213 | int |