123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #ifndef DROPBEAR_CHANSESSION_H_
- #define DROPBEAR_CHANSESSION_H_
- #include "loginrec.h"
- #include "channel.h"
- #include "listener.h"
- struct exitinfo {
- int exitpid;
- int exitstatus;
- int exitsignal;
- int exitcore;
- };
- struct ChanSess {
- char * cmd;
- pid_t pid;
-
- int master;
- int slave;
- char * tty;
- char * term;
-
- struct exitinfo exit;
-
-
- char *connection_string;
-
- char *client_string;
-
- #ifndef DISABLE_X11FWD
- struct Listener * x11listener;
- int x11port;
- char * x11authprot;
- char * x11authcookie;
- unsigned int x11screennum;
- unsigned char x11singleconn;
- #endif
- #ifdef ENABLE_SVR_AGENTFWD
- struct Listener * agentlistener;
- char * agentfile;
- char * agentdir;
- #endif
- #ifdef ENABLE_SVR_PUBKEY_OPTIONS
- char *original_command;
- #endif
- };
- struct ChildPid {
- pid_t pid;
- struct ChanSess * chansess;
- };
- void addnewvar(const char* param, const char* var);
- void cli_send_chansess_request(void);
- void cli_tty_cleanup(void);
- void cli_chansess_winchange(void);
- #ifdef ENABLE_CLI_NETCAT
- void cli_send_netcat_request(void);
- #endif
- void svr_chansessinitialise(void);
- extern const struct ChanType svrchansess;
- struct SigMap {
- int signal;
- char* name;
- };
- extern const struct SigMap signames[];
- #endif
|