diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-10-11 20:24:55 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-10-11 20:24:55 +0000 |
commit | c07afe02729429699c723e96f9655de37d23c28f (patch) | |
tree | 82dfc28bc438063e74348eeb530e0d6e2b6b72d2 | |
parent | 84bfe032bab05c88e7898f0e487c3a6b5d85e8d0 (diff) |
we do not ship ssh-askpass
-rw-r--r-- | usr.bin/ssh/readpass.c | 23 | ||||
-rw-r--r-- | usr.bin/ssh/ssh-add.c | 15 |
2 files changed, 2 insertions, 36 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); diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c index 65bf4fbb2cc..125a6027ca3 100644 --- a/usr.bin/ssh/ssh-add.c +++ b/usr.bin/ssh/ssh-add.c @@ -14,7 +14,7 @@ Adds an identity to the authentication server, or removes an identity. */ #include "includes.h" -RCSID("$Id: ssh-add.c,v 1.4 1999/09/29 21:14:16 deraadt Exp $"); +RCSID("$Id: ssh-add.c,v 1.5 1999/10/11 20:24:54 markus Exp $"); #include "rsa.h" #include "ssh.h" @@ -110,21 +110,8 @@ add_file(const char *filename) /* Ask for a passphrase. */ if (getenv("DISPLAY") && !isatty(fileno(stdin))) { - snprintf(buf, sizeof buf, - "ssh-askpass '%sEnter passphrase for %.100s'", - first ? "" : "You entered wrong passphrase. ", - saved_comment); - f = popen(buf, "r"); - if (!fgets(buf, sizeof(buf), f)) - { - pclose(f); xfree(saved_comment); return; - } - pclose(f); - if (strchr(buf, '\n')) - *strchr(buf, '\n') = 0; - pass = xstrdup(buf); } else { |