Displaying 3 results from an estimated 3 matches for "from_stdin".
2001 Oct 07
1
FYI : FiSh connection over SSH fails : midnight commander freezing
...nts a prompt and returns the response allocated with xmalloc().
* Uses /dev/tty or stdin/out depending on arg. Optionally disables echo
* of response depending on arg. Tries to ensure that no other userland
* buffer is storing the response.
*/
As one of the arguments a variable "from_stdin" is passed, but I did whether
figure out where this variable is set nor where it is defined, it seems to be
always 0.
Depending on the value of "from_stdin", the function "cli_open" seems to
return the file descriptors of /dev/tty or of stdin/stdout. I have no idea
yet if...
2000 Sep 09
0
2.2.0p1 PATCH: ssh/scp/slogin will invoke ssh-askpass
...thenticationConnection *ac, const char *filename)
{
diff -U 3 -N -r ORIG/openssh-2.2.0p1/ssh.h openssh-2.2.0p1/ssh.h
--- ORIG/openssh-2.2.0p1/ssh.h Tue Aug 22 20:46:25 2000
+++ openssh-2.2.0p1/ssh.h Sat Sep 9 01:10:07 2000
@@ -426,6 +426,12 @@
*/
char *read_passphrase(const char *prompt, int from_stdin);
+/*
+ * Reads a passphrase by calling ssh-askpass. Returns the passphrase
+ * (allocated with xmalloc), being very careful to ensure that no
+ * other userland buffer is storing the password.
+ */
+char *ssh_askpass(char *askpass, char *msg);
/*------------ Definitions for logging. --------...
1999 Dec 10
2
[David Huggins-Daines <dhd@plcom.on.ca>] Bug#52414: ssh-add uses ssh-askpass, but ssh doesn't
...a. */
pw = getpwuid(original_real_uid);
if (!pw) {
diff -ur openssh-1.2pre16/ssh.h openssh-1.2pre16.patched/ssh.h
--- openssh-1.2pre16/ssh.h Thu Dec 9 22:29:24 1999
+++ openssh-1.2pre16.patched/ssh.h Thu Dec 9 22:14:30 1999
@@ -429,6 +429,12 @@
char *read_passphrase(const char *prompt, int from_stdin);
/*
+ * Attempts to call the ssh-askpass program to read a passphrase when
+ * there is no tty and $DISPLAY is set.
+ */
+char *ssh_askpass(const char *askpass, const char *msg);
+
+/*
* Saves the authentication (private) key in a file, encrypting it with
* passphrase. The identification o...