X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=putty.h;h=baa55ff6df97ea771f861aded4b9d33a42648406;hb=958be97ce76eb774408b2e32cbb1c2afb80026d7;hp=4302b8498213a756a2cc1e0e5c47bc38e10241ff;hpb=7983d2dd280beaf6181c50cee441d661d0ea02ba;p=PuTTY.git diff --git a/putty.h b/putty.h index 4302b849..baa55ff6 100644 --- a/putty.h +++ b/putty.h @@ -130,7 +130,8 @@ GLOBAL unsigned char unitab_ctrl[256]; #define LGXF_ASK -1 /* existing logfile ask */ #define LGTYP_NONE 0 /* logmode: no logging */ #define LGTYP_ASCII 1 /* logmode: pure ascii */ -#define LGTYP_DEBUG 2 /* logmode: all chars of taffic */ +#define LGTYP_DEBUG 2 /* logmode: all chars of traffic */ +#define LGTYP_PACKETS 3 /* logmode: SSH data packets */ GLOBAL char *logfile; /* @@ -213,6 +214,7 @@ typedef struct { void (*size) (void); void (*special) (Telnet_Special code); Socket(*socket) (void); + int (*exitcode) (void); int (*sendok) (void); int (*ldisc) (int); /* @@ -279,6 +281,7 @@ typedef struct { int app_keypad; int nethack_keypad; int telnet_keyboard; + int telnet_newline; int alt_f4; /* is it special? */ int alt_space; /* is it special? */ int alt_only; /* is it special? */ @@ -346,7 +349,8 @@ typedef struct { int x11_forward; char x11_display[128]; /* port forwarding */ - int lport_acceptall; /* accepts connection from hosts other than localhost */ + int lport_acceptall; /* accept conns from hosts other than localhost */ + int rport_acceptall; /* same for remote forwarded ports (SSH2 only) */ char portfwd[1024]; /* [LR]localport\thost:port\000[LR]localport\thost:port\000\000 */ } Config; @@ -485,6 +489,13 @@ void logfopen(void); void logfclose(void); void term_copyall(void); +/* + * Exports from logging.c. + */ +void logtraffic(unsigned char c, int logmode); +enum { PKT_INCOMING, PKT_OUTGOING }; +void log_packet(int direction, int type, char *texttype, void *data, int len); + /* * Exports from raw.c. */ @@ -580,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