mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Remove unused params from console_get_userpass_input.
NFC: this is a preliminary refactoring, intended to make my life easier when I start changing around the APIs used to pass user keyboard input around. The fewer functions even _have_ such an API, the less I'll have to do at that point.
This commit is contained in:
@ -456,8 +456,7 @@ static void console_prompt_text(FILE *outfp, const char *data, int len)
|
||||
fflush(outfp);
|
||||
}
|
||||
|
||||
int console_get_userpass_input(prompts_t *p, const unsigned char *in,
|
||||
int inlen)
|
||||
int console_get_userpass_input(prompts_t *p)
|
||||
{
|
||||
size_t curr_prompt;
|
||||
FILE *outfp = NULL;
|
||||
|
@ -351,7 +351,7 @@ static char *askpass_tty(const char *prompt)
|
||||
p->to_server = FALSE;
|
||||
p->name = dupstr("Pageant passphrase prompt");
|
||||
add_prompt(p, dupcat(prompt, ": ", (const char *)NULL), FALSE);
|
||||
ret = console_get_userpass_input(p, NULL, 0);
|
||||
ret = console_get_userpass_input(p);
|
||||
assert(ret >= 0);
|
||||
|
||||
if (!ret) {
|
||||
|
@ -437,7 +437,7 @@ int get_userpass_input(prompts_t *p, const 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);
|
||||
ret = console_get_userpass_input(p);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ int get_userpass_input(prompts_t *p, const 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);
|
||||
ret = console_get_userpass_input(p);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user