summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/readpass.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>1999-10-11 20:24:54 +0000
committermarkus <markus@openbsd.org>1999-10-11 20:24:54 +0000
commit1c18c7db70ce4cff3b92d68a3d01cbf8b0d506a2 (patch)
tree6f68c6ea859a368c7afc9c39818d05352e55d5ad /usr.bin/ssh/readpass.c
parentRun /usr/libexec/vi.recover (now a perl script) to preserve vi backup files. (diff)
downloadwireguard-openbsd-1c18c7db70ce4cff3b92d68a3d01cbf8b0d506a2.tar.xz
wireguard-openbsd-1c18c7db70ce4cff3b92d68a3d01cbf8b0d506a2.zip
we do not ship ssh-askpass
Diffstat (limited to 'usr.bin/ssh/readpass.c')
-rw-r--r--usr.bin/ssh/readpass.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/usr.bin/ssh/readpass.c b/usr.bin/ssh/readpass.c
index 30c340624f8..e615c5c6f34 100644
--- a/usr.bin/ssh/readpass.c
+++ b/usr.bin/ssh/readpass.c
@@ -14,7 +14,7 @@ Functions for reading passphrases and passwords.
*/
#include "includes.h"
-RCSID("$Id: readpass.c,v 1.3 1999/09/30 08:34:25 deraadt Exp $");
+RCSID("$Id: readpass.c,v 1.4 1999/10/11 20:24:54 markus Exp $");
#include "xmalloc.h"
#include "ssh.h"
@@ -57,27 +57,6 @@ char *read_passphrase(const char *prompt, int from_stdin)
f = fopen("/dev/tty", "r");
if (!f)
{
- if (getenv("DISPLAY"))
- {
- char command[512];
- fprintf(stderr,
- "Executing ssh-askpass to query the password...\n");
- fflush(stdout);
- fflush(stderr);
- sprintf(command, "ssh-askpass '%.400s'", prompt);
- f = popen(command, "r");
- if (!fgets(buf, sizeof(buf), f))
- {
- pclose(f);
- fprintf(stderr, "No passphrase supplied. Exiting.\n");
- exit(1);
- }
- pclose(f);
- if (strchr(buf, '\n'))
- *strchr(buf, '\n') = 0;
- return xstrdup(buf);
- }
-
/* No controlling terminal and no DISPLAY. Nowhere to read. */
fprintf(stderr, "You have no controlling tty and no DISPLAY. Cannot read passphrase.\n");
exit(1);