mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Support the SSH-2 mechanism for sending signals to a running session. Neither
of the SSH servers I conveniently have access to (Debian stable OpenSSH -- 3.4p1 -- and lshd) seem to take a blind bit of notice, but the channel requests look fine to me in the packet log. I've included all the signals explicitly defined by draft-ietf-secsh-connect-19, but I've put the more obscure ones in a submenu of the specials menu; there's therefore been some minor upheaval to support such submenus. [originally from svn r4652]
This commit is contained in:
14
putty.h
14
putty.h
@ -127,13 +127,23 @@ struct unicode_data {
|
||||
#define LGTYP_PACKETS 3 /* logmode: SSH data packets */
|
||||
|
||||
typedef enum {
|
||||
/* Actual special commands. Originally Telnet, but some codes have
|
||||
* been re-used for similar specials in other protocols. */
|
||||
TS_AYT, TS_BRK, TS_SYNCH, TS_EC, TS_EL, TS_GA, TS_NOP, TS_ABORT,
|
||||
TS_AO, TS_IP, TS_SUSP, TS_EOR, TS_EOF, TS_LECHO, TS_RECHO, TS_PING,
|
||||
TS_EOL
|
||||
TS_EOL,
|
||||
/* POSIX-style signals. (not Telnet) */
|
||||
TS_SIGABRT, TS_SIGALRM, TS_SIGFPE, TS_SIGHUP, TS_SIGILL,
|
||||
TS_SIGINT, TS_SIGKILL, TS_SIGPIPE, TS_SIGQUIT, TS_SIGSEGV,
|
||||
TS_SIGTERM, TS_SIGUSR1, TS_SIGUSR2,
|
||||
/* Pseudo-specials used for constructing the specials menu. */
|
||||
TS_SEP, /* Separator */
|
||||
TS_SUBMENU, /* Start a new submenu with specified name */
|
||||
TS_EXITMENU /* Exit current submenu or end of specials */
|
||||
} Telnet_Special;
|
||||
|
||||
struct telnet_special {
|
||||
const char *name; /* NULL==end, ""==separator */
|
||||
const char *name;
|
||||
int code;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user