comparison session.h @ 118:5312ca05ed48 private-rez

propagate of 717950f4061f1123659ee87c7c168805af920ab7 and 839f98f136788cc1466e4641bf796f96040a085d from branch 'matt.dbclient.authpam' to 'matt.dbclient.rez'
author Matt Johnston <matt@ucc.asn.au>
date Sun, 12 Sep 2004 04:56:50 +0000
parents 10f4d3319780
children 154c8d5a6d1e
comparison
equal deleted inserted replaced
57:3b2a5a1c4347 118:5312ca05ed48
33 #include "auth.h" 33 #include "auth.h"
34 #include "channel.h" 34 #include "channel.h"
35 #include "queue.h" 35 #include "queue.h"
36 #include "listener.h" 36 #include "listener.h"
37 #include "packet.h" 37 #include "packet.h"
38 #include "tcpfwd.h"
38 39
39 extern int sessinitdone; /* Is set to 0 somewhere */ 40 extern int sessinitdone; /* Is set to 0 somewhere */
40 extern int exitflag; 41 extern int exitflag;
41 42
42 void common_session_init(int sock, char* remotehost); 43 void common_session_init(int sock, char* remotehost);
43 void session_loop(void(*loophandler)()); 44 void session_loop(void(*loophandler)());
44 void common_session_cleanup(); 45 void common_session_cleanup();
45 void checktimeouts();
46 void session_identification(); 46 void session_identification();
47 47
48 48
49 /* Server */ 49 /* Server */
50 void svr_session(int sock, int childpipe, char *remotehost); 50 void svr_session(int sock, int childpipe, char *remotehost);
51 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);
52 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);
53 53
54 /* Client */ 54 /* Client */
55 void cli_session(int sock, char *remotehost); 55 void cli_session(int sock, char *remotehost);
56 void cli_dropbear_exit(int exitcode, const char* format, va_list param);
57 void cli_dropbear_log(int priority, const char* format, va_list param);
58 void cli_session_cleanup(); 56 void cli_session_cleanup();
59 void cleantext(unsigned char* dirtytext); 57 void cleantext(unsigned char* dirtytext);
60 58
61 struct key_context { 59 struct key_context {
62 60
209 int something; /* XXX */ 207 int something; /* XXX */
210 unsigned donefirstkex : 1; /* Set when we set sentnewkeys, never reset */ 208 unsigned donefirstkex : 1; /* Set when we set sentnewkeys, never reset */
211 209
212 int tty_raw_mode; /* Whether we're in raw mode (and have to clean up) */ 210 int tty_raw_mode; /* Whether we're in raw mode (and have to clean up) */
213 struct termios saved_tio; 211 struct termios saved_tio;
212 int stdincopy;
213 int stdinflags;
214 214
215 int winchange; /* Set to 1 when a windowchange signal happens */ 215 int winchange; /* Set to 1 when a windowchange signal happens */
216 216
217 int lastauthtype; /* either AUTH_TYPE_PUBKEY or AUTH_TYPE_PASSWORD, 217 int lastauthtype; /* either AUTH_TYPE_PUBKEY or AUTH_TYPE_PASSWORD,
218 for the last type of auth we tried */ 218 for the last type of auth we tried */
219 struct PubkeyList *lastpubkey; 219 struct PubkeyList *lastpubkey;
220
221 int retval; /* What the command exit status was - we emulate it */
220 #if 0 222 #if 0
221 TODO 223 TODO
222 struct AgentkeyList *agentkeys; /* Keys to use for public-key auth */ 224 struct AgentkeyList *agentkeys; /* Keys to use for public-key auth */
223 #endif 225 #endif
224 226