diff options
Diffstat (limited to 'ssh-add.c')
-rw-r--r-- | ssh-add.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -14,7 +14,7 @@ Adds an identity to the authentication server, or removes an identity. | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include "includes.h" | 16 | #include "includes.h" |
17 | RCSID("$Id: ssh-add.c,v 1.7 1999/11/15 03:25:30 damien Exp $"); | 17 | RCSID("$Id: ssh-add.c,v 1.8 1999/11/15 06:10:57 damien Exp $"); |
18 | 18 | ||
19 | #include "rsa.h" | 19 | #include "rsa.h" |
20 | #include "ssh.h" | 20 | #include "ssh.h" |
@@ -25,6 +25,12 @@ RCSID("$Id: ssh-add.c,v 1.7 1999/11/15 03:25:30 damien Exp $"); | |||
25 | int askpass(const char *filename, RSA *key, const char *saved_comment, char **comment); | 25 | int askpass(const char *filename, RSA *key, const char *saved_comment, char **comment); |
26 | #endif /* USE_EXTERNAL_ASKPASS */ | 26 | #endif /* USE_EXTERNAL_ASKPASS */ |
27 | 27 | ||
28 | #ifdef HAVE___PROGNAME | ||
29 | extern char *__progname; | ||
30 | #else /* HAVE___PROGNAME */ | ||
31 | const char *__progname = "ssh-add"; | ||
32 | #endif /* HAVE___PROGNAME */ | ||
33 | |||
28 | void | 34 | void |
29 | delete_file(AuthenticationConnection *ac, const char *filename) | 35 | delete_file(AuthenticationConnection *ac, const char *filename) |
30 | { | 36 | { |
@@ -175,7 +181,6 @@ main(int argc, char **argv) | |||
175 | 181 | ||
176 | /* check if RSA support exists */ | 182 | /* check if RSA support exists */ |
177 | if (rsa_alive() == 0) { | 183 | if (rsa_alive() == 0) { |
178 | extern char *__progname; | ||
179 | 184 | ||
180 | fprintf(stderr, | 185 | fprintf(stderr, |
181 | "%s: no RSA support in libssl and libcrypto. See ssl(8).\n", | 186 | "%s: no RSA support in libssl and libcrypto. See ssl(8).\n", |