summaryrefslogtreecommitdiff
path: root/ssh-add.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-add.c')
-rw-r--r--ssh-add.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/ssh-add.c b/ssh-add.c
index b44c306b2..979164cae 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -35,7 +35,7 @@
35 */ 35 */
36 36
37#include "includes.h" 37#include "includes.h"
38RCSID("$OpenBSD: ssh-add.c,v 1.44 2001/08/01 22:03:33 markus Exp $"); 38RCSID("$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;
55char *__progname; 55char *__progname;
56#endif 56#endif
57 57
58/* argv0 */
59extern char *__progname;
60
58/* we keep a cache of one passphrases */ 61/* we keep a cache of one passphrases */
59static char *pass = NULL; 62static char *pass = NULL;
60static void 63static void
@@ -195,12 +198,16 @@ list_identities(AuthenticationConnection *ac, int do_fp)
195static void 198static void
196usage(void) 199usage(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
206int 213int