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:
8
putty.h
8
putty.h
@ -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
|
||||
|
Reference in New Issue
Block a user