Commit 1f2b70e7 authored by Niels Möller's avatar Niels Möller

*** empty log message ***

Rev: src/client.h:1.36
Rev: src/client_password.c:1.11
parent 4478de16
......@@ -125,7 +125,7 @@ make_exec_request(struct lsh_string *command);
(used_pty . int)
(start_shell . int)
;; (remote_forward . int)
(remote_forward . int)
(actions struct object_queue)))
*/
......
......@@ -41,35 +41,7 @@
#include <termios.h>
#include <pwd.h>
#if 0
/* FIXME: Expand the functionality of interact.c, so that we can use
* that instead of getpass(). */
struct lsh_string *
read_password(int max_length UNUSED,
struct lsh_string *prompt, int free)
{
/* NOTE: Ignores max_length; instead getpass()'s limit applies. */
char *password;
prompt = make_cstring(prompt, free);
if (!prompt)
return 0;
/* NOTE: This function uses a static buffer. */
password = getpass(prompt->data);
lsh_string_free(prompt);
if (!password)
return 0;
return format_cstring(password);
}
#endif
#if 0
static int echo_on(int fd)
{
struct termios t;
......@@ -161,4 +133,3 @@ read_password(int max_length, struct lsh_string *prompt)
return res;
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment