diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | ssh-add.c | 6 |
2 files changed, 10 insertions, 4 deletions
@@ -1,3 +1,9 @@ | |||
1 | 20010503 | ||
2 | - OpenBSD CVS Sync | ||
3 | - markus@cvs.openbsd.org 2001/05/02 16:41:20 | ||
4 | [ssh-add.c] | ||
5 | fix prompt for ssh-add. | ||
6 | |||
1 | 20010502 | 7 | 20010502 |
2 | - OpenBSD CVS Sync | 8 | - OpenBSD CVS Sync |
3 | - mouring@cvs.openbsd.org 2001/05/02 01:25:39 | 9 | - mouring@cvs.openbsd.org 2001/05/02 01:25:39 |
@@ -5302,4 +5308,4 @@ | |||
5302 | - Wrote replacements for strlcpy and mkdtemp | 5308 | - Wrote replacements for strlcpy and mkdtemp |
5303 | - Released 1.0pre1 | 5309 | - Released 1.0pre1 |
5304 | 5310 | ||
5305 | $Id: ChangeLog,v 1.1189 2001/05/02 01:30:32 mouring Exp $ | 5311 | $Id: ChangeLog,v 1.1190 2001/05/02 22:40:12 mouring Exp $ |
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | RCSID("$OpenBSD: ssh-add.c,v 1.36 2001/04/18 21:57:42 markus Exp $"); | 38 | RCSID("$OpenBSD: ssh-add.c,v 1.37 2001/05/02 16:41:20 markus Exp $"); |
39 | 39 | ||
40 | #include <openssl/evp.h> | 40 | #include <openssl/evp.h> |
41 | 41 | ||
@@ -126,7 +126,7 @@ add_file(AuthenticationConnection *ac, const char *filename) | |||
126 | /* clear passphrase since it did not work */ | 126 | /* clear passphrase since it did not work */ |
127 | clear_pass(); | 127 | clear_pass(); |
128 | printf("Need passphrase for %.200s\n", filename); | 128 | printf("Need passphrase for %.200s\n", filename); |
129 | snprintf(msg, sizeof msg, "Enter passphrase for %.200s ", | 129 | snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ", |
130 | comment); | 130 | comment); |
131 | for (;;) { | 131 | for (;;) { |
132 | pass = read_passphrase(msg, 1); | 132 | pass = read_passphrase(msg, 1); |
@@ -139,7 +139,7 @@ add_file(AuthenticationConnection *ac, const char *filename) | |||
139 | if (private != NULL) | 139 | if (private != NULL) |
140 | break; | 140 | break; |
141 | clear_pass(); | 141 | clear_pass(); |
142 | strlcpy(msg, "Bad passphrase, try again ", sizeof msg); | 142 | strlcpy(msg, "Bad passphrase, try again: ", sizeof msg); |
143 | } | 143 | } |
144 | } | 144 | } |
145 | if (ssh_add_identity(ac, private, comment)) | 145 | if (ssh_add_identity(ac, private, comment)) |