comparison session.h @ 108:10f4d3319780

- added circular buffering for channels - added stderr support for the client - cleaned up a bunch of "unused" warnings, duplicated header definitions - added exit-status support for the client
author Matt Johnston <matt@ucc.asn.au>
date Thu, 26 Aug 2004 13:16:40 +0000
parents 5dda5a4d475c
children 154c8d5a6d1e
comparison
equal deleted inserted replaced
107:d3eb1fa8484e 108:10f4d3319780
41 extern int exitflag; 41 extern int exitflag;
42 42
43 void common_session_init(int sock, char* remotehost); 43 void common_session_init(int sock, char* remotehost);
44 void session_loop(void(*loophandler)()); 44 void session_loop(void(*loophandler)());
45 void common_session_cleanup(); 45 void common_session_cleanup();
46 void checktimeouts();
47 void session_identification(); 46 void session_identification();
48 47
49 48
50 /* Server */ 49 /* Server */
51 void svr_session(int sock, int childpipe, char *remotehost); 50 void svr_session(int sock, int childpipe, char *remotehost);
52 void svr_dropbear_exit(int exitcode, const char* format, va_list param); 51 void svr_dropbear_exit(int exitcode, const char* format, va_list param);
53 void svr_dropbear_log(int priority, const char* format, va_list param); 52 void svr_dropbear_log(int priority, const char* format, va_list param);
54 53
55 /* Client */ 54 /* Client */
56 void cli_session(int sock, char *remotehost); 55 void cli_session(int sock, char *remotehost);
57 void cli_dropbear_exit(int exitcode, const char* format, va_list param);
58 void cli_dropbear_log(int priority, const char* format, va_list param);
59 void cli_session_cleanup(); 56 void cli_session_cleanup();
60 void cleantext(unsigned char* dirtytext); 57 void cleantext(unsigned char* dirtytext);
61 58
62 struct key_context { 59 struct key_context {
63 60
218 int winchange; /* Set to 1 when a windowchange signal happens */ 215 int winchange; /* Set to 1 when a windowchange signal happens */
219 216
220 int lastauthtype; /* either AUTH_TYPE_PUBKEY or AUTH_TYPE_PASSWORD, 217 int lastauthtype; /* either AUTH_TYPE_PUBKEY or AUTH_TYPE_PASSWORD,
221 for the last type of auth we tried */ 218 for the last type of auth we tried */
222 struct PubkeyList *lastpubkey; 219 struct PubkeyList *lastpubkey;
220
221 int retval; /* What the command exit status was - we emulate it */
223 #if 0 222 #if 0
224 TODO 223 TODO
225 struct AgentkeyList *agentkeys; /* Keys to use for public-key auth */ 224 struct AgentkeyList *agentkeys; /* Keys to use for public-key auth */
226 #endif 225 #endif
227 226