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:
6
cmdgen.c
6
cmdgen.c
@ -46,7 +46,7 @@ char *get_random_data(int len, const char *device)
|
||||
#define console_get_userpass_input console_get_userpass_input_diagnostic
|
||||
int nprompts, promptsgot;
|
||||
const char *prompts[3];
|
||||
int console_get_userpass_input(prompts_t *p, unsigned char *in, int inlen)
|
||||
int console_get_userpass_input(prompts_t *p)
|
||||
{
|
||||
size_t i;
|
||||
int ret = 1;
|
||||
@ -785,7 +785,7 @@ int main(int argc, char **argv)
|
||||
p->to_server = FALSE;
|
||||
p->name = dupstr("SSH key passphrase");
|
||||
add_prompt(p, dupstr("Enter passphrase to load key: "), FALSE);
|
||||
ret = console_get_userpass_input(p, NULL, 0);
|
||||
ret = console_get_userpass_input(p);
|
||||
assert(ret >= 0);
|
||||
if (!ret) {
|
||||
free_prompts(p);
|
||||
@ -932,7 +932,7 @@ int main(int argc, char **argv)
|
||||
p->name = dupstr("New SSH key passphrase");
|
||||
add_prompt(p, dupstr("Enter passphrase to save key: "), FALSE);
|
||||
add_prompt(p, dupstr("Re-enter passphrase to verify: "), FALSE);
|
||||
ret = console_get_userpass_input(p, NULL, 0);
|
||||
ret = console_get_userpass_input(p);
|
||||
assert(ret >= 0);
|
||||
if (!ret) {
|
||||
free_prompts(p);
|
||||
|
Reference in New Issue
Block a user