comparison session.h @ 479:e3db1f7a2e43

- Split main socket var into ses.sock_in/ses.sock_out in preparation for -J proxy_cmd option (and some prelim options for that)
author Matt Johnston <matt@ucc.asn.au>
date Mon, 15 Sep 2008 12:51:50 +0000
parents 7e43f5e473b9
children 7ad49f34a122
comparison
equal deleted inserted replaced
477:657c045054ab 479:e3db1f7a2e43
39 #include "chansession.h" 39 #include "chansession.h"
40 40
41 extern int sessinitdone; /* Is set to 0 somewhere */ 41 extern int sessinitdone; /* Is set to 0 somewhere */
42 extern int exitflag; 42 extern int exitflag;
43 43
44 void common_session_init(int sock, char* remotehost); 44 void common_session_init(int sock_in, int sock_out, char* remotehost);
45 void session_loop(void(*loophandler)()); 45 void session_loop(void(*loophandler)());
46 void common_session_cleanup(); 46 void common_session_cleanup();
47 void session_identification(); 47 void session_identification();
48 void send_msg_ignore(); 48 void send_msg_ignore();
49 49
52 void svr_session(int sock, int childpipe, char *remotehost, char *addrstring); 52 void svr_session(int sock, int childpipe, char *remotehost, char *addrstring);
53 void svr_dropbear_exit(int exitcode, const char* format, va_list param); 53 void svr_dropbear_exit(int exitcode, const char* format, va_list param);
54 void svr_dropbear_log(int priority, const char* format, va_list param); 54 void svr_dropbear_log(int priority, const char* format, va_list param);
55 55
56 /* Client */ 56 /* Client */
57 void cli_session(int sock, char *remotehost); 57 void cli_session(int sock_in, int sock_out, char *remotehost);
58 void cli_session_cleanup(); 58 void cli_session_cleanup();
59 void cleantext(unsigned char* dirtytext); 59 void cleantext(unsigned char* dirtytext);
60 60
61 struct key_context { 61 struct key_context {
62 62
95 95
96 time_t connect_time; /* time the connection was established 96 time_t connect_time; /* time the connection was established
97 (cleared after auth once we're not 97 (cleared after auth once we're not
98 respecting AUTH_TIMEOUT any more) */ 98 respecting AUTH_TIMEOUT any more) */
99 99
100 int sock; 100 int sock_in;
101 int sock_out;
101 102
102 unsigned char *remotehost; /* the peer hostname */ 103 unsigned char *remotehost; /* the peer hostname */
103 104
104 unsigned char *remoteident; 105 unsigned char *remoteident;
105 106