mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Add a 'from_server' flag in prompts_t.
This goes with the existing 'to_server' flag (indicating whether the values typed by the user are going to be sent over the wire or remain local), to indicate whether the _text of the prompts_ has come over the wire or is originated locally. Like to_server, nothing yet uses this. It's a hedge against the possibility of maybe having an option for all the auth prompts to work via GUI dialog boxes.
This commit is contained in:
@ -328,6 +328,7 @@ static char *askpass_tty(const char *prompt)
|
||||
int ret;
|
||||
prompts_t *p = new_prompts();
|
||||
p->to_server = false;
|
||||
p->from_server = false;
|
||||
p->name = dupstr("Pageant passphrase prompt");
|
||||
add_prompt(p, dupcat(prompt, ": ", (const char *)NULL), false);
|
||||
ret = console_get_userpass_input(p);
|
||||
|
Reference in New Issue
Block a user