mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 04:52:47 -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:
9
putty.h
9
putty.h
@ -659,6 +659,15 @@ typedef struct {
|
||||
* sufficient).
|
||||
*/
|
||||
bool to_server;
|
||||
|
||||
/*
|
||||
* Indicates whether the prompts originated _at_ the server, so
|
||||
* that the front end can display some kind of trust sigil that
|
||||
* distinguishes (say) a legit private-key passphrase prompt from
|
||||
* a fake one sent by a malicious server.
|
||||
*/
|
||||
bool from_server;
|
||||
|
||||
char *name; /* Short description, perhaps for dialog box title */
|
||||
bool name_reqd; /* Display of `name' required or optional? */
|
||||
char *instruction; /* Long description, maybe with embedded newlines */
|
||||
|
Reference in New Issue
Block a user