diff options
author | Damien Miller <djm@mindrot.org> | 2003-06-18 20:29:18 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-06-18 20:29:18 +1000 |
commit | 80163e1b72d2abb8338a104d97798048d9bfd5a1 (patch) | |
tree | f955e7772c7ae13b7fee4b301b7c57e09ab3e480 /ssh-add.c | |
parent | 8c1d2e3926c483551c5a2b0e356d300ad2908d9e (diff) |
- markus@cvs.openbsd.org 2003/06/16 10:22:45
[ssh-add.c]
print out key comment on each prompt; make ssh-askpass more useable; ok djm@
Diffstat (limited to 'ssh-add.c')
-rw-r--r-- | ssh-add.c | 5 |
1 files changed, 3 insertions, 2 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.67 2003/06/11 11:18:38 djm Exp $"); | 38 | RCSID("$OpenBSD: ssh-add.c,v 1.68 2003/06/16 10:22:45 markus Exp $"); |
39 | 39 | ||
40 | #include <openssl/evp.h> | 40 | #include <openssl/evp.h> |
41 | 41 | ||
@@ -164,7 +164,8 @@ 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 | strlcpy(msg, "Bad passphrase, try again: ", sizeof msg); | 167 | snprintf(msg, sizeof msg, |
168 | "Bad passphrase, try again for %.200s: ", comment); | ||
168 | } | 169 | } |
169 | } | 170 | } |
170 | 171 | ||