summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-add.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-06-24 05:35:33 +0000
committermarkus <markus@openbsd.org>2001-06-24 05:35:33 +0000
commit22548184de4fe7218da9dbb22f9dd176affdf96b (patch)
treeebbc18e3f9d00258ea05641435c5536e5a827b42 /usr.bin/ssh/ssh-add.c
parentmove ip+hostname check to match.c (diff)
downloadwireguard-openbsd-22548184de4fe7218da9dbb22f9dd176affdf96b.tar.xz
wireguard-openbsd-22548184de4fe7218da9dbb22f9dd176affdf96b.zip
switch to readpassphrase(3)
2.7/8-stable needs readpassphrase.[ch] from libc
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
-rw-r--r--usr.bin/ssh/ssh-add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c
index 4c2db31703d..a69c72764d2 100644
--- a/usr.bin/ssh/ssh-add.c
+++ b/usr.bin/ssh/ssh-add.c
@@ -35,7 +35,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-add.c,v 1.39 2001/06/23 15:12:20 itojun Exp $");
+RCSID("$OpenBSD: ssh-add.c,v 1.40 2001/06/24 05:35:33 markus Exp $");
#include <openssl/evp.h>
@@ -122,7 +122,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ",
comment);
for (;;) {
- pass = read_passphrase(msg, 1);
+ pass = read_passphrase(msg, RP_ALLOW_STDIN);
if (strcmp(pass, "") == 0) {
clear_pass();
xfree(comment);