diff options
Diffstat (limited to 'ssh-add.c')
-rw-r--r-- | ssh-add.c | 9 |
1 files changed, 4 insertions, 5 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.68 2003/06/16 10:22:45 markus Exp $"); | 38 | RCSID("$OpenBSD: ssh-add.c,v 1.66 2003/03/05 22:33:43 markus Exp $"); |
39 | 39 | ||
40 | #include <openssl/evp.h> | 40 | #include <openssl/evp.h> |
41 | 41 | ||
@@ -164,8 +164,7 @@ add_file(AuthenticationConnection *ac, const char *filename) | |||
164 | if (private != NULL) | 164 | if (private != NULL) |
165 | break; | 165 | break; |
166 | clear_pass(); | 166 | clear_pass(); |
167 | snprintf(msg, sizeof msg, | 167 | strlcpy(msg, "Bad passphrase, try again: ", sizeof msg); |
168 | "Bad passphrase, try again for %.200s: ", comment); | ||
169 | } | 168 | } |
170 | } | 169 | } |
171 | 170 | ||
@@ -202,7 +201,7 @@ update_card(AuthenticationConnection *ac, int add, const char *id) | |||
202 | if (pin == NULL) | 201 | if (pin == NULL) |
203 | return -1; | 202 | return -1; |
204 | 203 | ||
205 | if (ssh_update_card(ac, add, id, pin, lifetime, confirm)) { | 204 | if (ssh_update_card(ac, add, id, pin)) { |
206 | fprintf(stderr, "Card %s: %s\n", | 205 | fprintf(stderr, "Card %s: %s\n", |
207 | add ? "added" : "removed", id); | 206 | add ? "added" : "removed", id); |
208 | ret = 0; | 207 | ret = 0; |
@@ -319,7 +318,7 @@ main(int argc, char **argv) | |||
319 | char *sc_reader_id = NULL; | 318 | char *sc_reader_id = NULL; |
320 | int i, ch, deleting = 0, ret = 0; | 319 | int i, ch, deleting = 0, ret = 0; |
321 | 320 | ||
322 | __progname = ssh_get_progname(argv[0]); | 321 | __progname = get_progname(argv[0]); |
323 | init_rng(); | 322 | init_rng(); |
324 | seed_rng(); | 323 | seed_rng(); |
325 | 324 | ||