X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/604fab0c2d879947490eceb1b898b82be0fb0c00..74c79ce8cd8759cc27872d56d580681b758ad05c:/windows/winplink.c diff --git a/windows/winplink.c b/windows/winplink.c index a67a2375..6e520c72 100644 --- a/windows/winplink.c +++ b/windows/winplink.c @@ -189,6 +189,25 @@ int from_backend(void *frontend_handle, int is_stderr, return osize + esize; } +int from_backend_untrusted(void *frontend_handle, const char *data, int len) +{ + /* + * No "untrusted" output should get here (the way the code is + * currently, it's all diverted by FLAG_STDERR). + */ + assert(!"Unexpected call to from_backend_untrusted()"); + return 0; /* not reached */ +} + +int get_userpass_input(prompts_t *p, unsigned char *in, int inlen) +{ + int ret; + ret = cmdline_get_passwd_input(p, in, inlen); + if (ret == -1) + ret = console_get_userpass_input(p, in, inlen); + return ret; +} + static DWORD main_thread_id; void agent_schedule_callback(void (*callback)(void *, void *, int), @@ -236,6 +255,8 @@ static void usage(void) printf(" -4 -6 force use of IPv4 or IPv6\n"); printf(" -C enable compression\n"); printf(" -i key private key file for authentication\n"); + printf(" -noagent disable use of Pageant\n"); + printf(" -agent enable use of Pageant\n"); printf(" -m file read remote command(s) from file\n"); printf(" -s remote command is an SSH subsystem (SSH-2 only)\n"); printf(" -N don't start a shell/command (SSH-2 only)\n"); @@ -285,8 +306,6 @@ int main(int argc, char **argv) int use_subsystem = 0; long now, next; - ssh_get_line = console_get_line; - sklist = NULL; skcount = sksize = 0; /*