Mercurial > dropbear
comparison chansession.h @ 9:7f77962de998
- Reworked non-channel fd handling to listener.c
- More channel cleaning up
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 03 Jun 2004 16:45:53 +0000 |
parents | ab00ef513e97 |
children | b4874d772210 |
comparison
equal
deleted
inserted
replaced
7:425ed5c20157 | 9:7f77962de998 |
---|---|
25 #ifndef _CHANSESSION_H_ | 25 #ifndef _CHANSESSION_H_ |
26 #define _CHANSESSION_H_ | 26 #define _CHANSESSION_H_ |
27 | 27 |
28 #include "loginrec.h" | 28 #include "loginrec.h" |
29 #include "channel.h" | 29 #include "channel.h" |
30 #include "listener.h" | |
30 | 31 |
31 struct ChanSess { | 32 struct ChanSess { |
32 | 33 |
33 unsigned char * cmd; /* command to exec */ | 34 unsigned char * cmd; /* command to exec */ |
34 pid_t pid; /* child process pid */ | 35 pid_t pid; /* child process pid */ |
45 int exitstatus; | 46 int exitstatus; |
46 int exitsignal; | 47 int exitsignal; |
47 unsigned char exitcore; | 48 unsigned char exitcore; |
48 | 49 |
49 #ifndef DISABLE_X11FWD | 50 #ifndef DISABLE_X11FWD |
50 int x11fd; /* set to -1 to indicate forwarding not established */ | 51 struct Listener * x11listener; |
51 int x11port; | 52 int x11port; |
52 char * x11authprot; | 53 char * x11authprot; |
53 char * x11authcookie; | 54 char * x11authcookie; |
54 unsigned int x11screennum; | 55 unsigned int x11screennum; |
55 unsigned char x11singleconn; | 56 unsigned char x11singleconn; |
56 #endif | 57 #endif |
57 | 58 |
58 #ifndef DISABLE_AGENTFWD | 59 #ifndef DISABLE_AGENTFWD |
59 int agentfd; | 60 struct Listener * agentlistener; |
60 char * agentfile; | 61 char * agentfile; |
61 char * agentdir; | 62 char * agentdir; |
62 #endif | 63 #endif |
63 }; | 64 }; |
64 | 65 |