- markus@cvs.openbsd.org 2001/05/02 16:41:20
[ssh-add.c] fix prompt for ssh-add.
This commit is contained in:
parent
6d849315ff
commit
8a1371347b
|
@ -1,3 +1,9 @@
|
||||||
|
20010503
|
||||||
|
- OpenBSD CVS Sync
|
||||||
|
- markus@cvs.openbsd.org 2001/05/02 16:41:20
|
||||||
|
[ssh-add.c]
|
||||||
|
fix prompt for ssh-add.
|
||||||
|
|
||||||
20010502
|
20010502
|
||||||
- OpenBSD CVS Sync
|
- OpenBSD CVS Sync
|
||||||
- mouring@cvs.openbsd.org 2001/05/02 01:25:39
|
- mouring@cvs.openbsd.org 2001/05/02 01:25:39
|
||||||
|
@ -5302,4 +5308,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1189 2001/05/02 01:30:32 mouring Exp $
|
$Id: ChangeLog,v 1.1190 2001/05/02 22:40:12 mouring Exp $
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: ssh-add.c,v 1.36 2001/04/18 21:57:42 markus Exp $");
|
RCSID("$OpenBSD: ssh-add.c,v 1.37 2001/05/02 16:41:20 markus Exp $");
|
||||||
|
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
|
||||||
/* clear passphrase since it did not work */
|
/* clear passphrase since it did not work */
|
||||||
clear_pass();
|
clear_pass();
|
||||||
printf("Need passphrase for %.200s\n", filename);
|
printf("Need passphrase for %.200s\n", filename);
|
||||||
snprintf(msg, sizeof msg, "Enter passphrase for %.200s ",
|
snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ",
|
||||||
comment);
|
comment);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
pass = read_passphrase(msg, 1);
|
pass = read_passphrase(msg, 1);
|
||||||
|
@ -139,7 +139,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
|
||||||
if (private != NULL)
|
if (private != NULL)
|
||||||
break;
|
break;
|
||||||
clear_pass();
|
clear_pass();
|
||||||
strlcpy(msg, "Bad passphrase, try again ", sizeof msg);
|
strlcpy(msg, "Bad passphrase, try again: ", sizeof msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ssh_add_identity(ac, private, comment))
|
if (ssh_add_identity(ac, private, comment))
|
||||||
|
|
Loading…
Reference in New Issue