1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 20:42:48 -05:00

Create the long-awaited console.c, and move the common routines out

of scp.c, psftp.c and plink.c into it. Additionally, add `batch
mode', in which all the interactive prompts (bad host key, log file
exists, insecure cipher, password prompt) are disabled and safe
responses are assumed. (The idea being that if you run PSCP, for
example, in a cron job then you'd probably rather it failed and
exited instead of leaving the cron job wedged while it waits for
user input that will never arrive.)

[originally from svn r1525]
This commit is contained in:
Simon Tatham
2001-12-31 16:15:19 +00:00
parent ccf9a051ca
commit 466b1c82d5
9 changed files with 367 additions and 698 deletions

View File

@ -591,4 +591,12 @@ const char *wc_error(int value);
int wc_match(const char *wildcard, const char *target);
int wc_unescape(char *output, const char *wildcard);
/*
* Exports from console.c (that aren't equivalents to things in
* windlg.c).
*/
extern int console_batch_mode;
extern char *console_password;
int console_get_line(const char *prompt, char *str, int maxlen, int is_pw);
#endif