diff options
author | Matt Johnston <matt@ucc.asn.au> | 2008-09-15 12:51:50 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2008-09-15 12:51:50 +0000 |
commit | b619e88f5481649a480e133494caf27f8880437a (patch) | |
tree | d8410822e892282abc5cdcd804db031285fe613c /session.h | |
parent | 460bf4382257a262fda862f66d6fe97c749f5bb7 (diff) | |
download | dropbear-b619e88f5481649a480e133494caf27f8880437a.tar.gz |
- Split main socket var into ses.sock_in/ses.sock_out in preparation
for -J proxy_cmd option (and some prelim options for that)
--HG--
extra : convert_revision : 47cdea9a7d66c553c6f5eec43b899821939d4e4c
Diffstat (limited to 'session.h')
-rw-r--r-- | session.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -41,7 +41,7 @@ extern int sessinitdone; /* Is set to 0 somewhere */ extern int exitflag; -void common_session_init(int sock, char* remotehost); +void common_session_init(int sock_in, int sock_out, char* remotehost); void session_loop(void(*loophandler)()); void common_session_cleanup(); void session_identification(); @@ -54,7 +54,7 @@ void svr_dropbear_exit(int exitcode, const char* format, va_list param); void svr_dropbear_log(int priority, const char* format, va_list param); /* Client */ -void cli_session(int sock, char *remotehost); +void cli_session(int sock_in, int sock_out, char *remotehost); void cli_session_cleanup(); void cleantext(unsigned char* dirtytext); @@ -97,7 +97,8 @@ struct sshsession { (cleared after auth once we're not respecting AUTH_TIMEOUT any more) */ - int sock; + int sock_in; + int sock_out; unsigned char *remotehost; /* the peer hostname */ |