Mercurial > dropbear
comparison session.h @ 568:005530560594
Rearrange getaddrstring() etc
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 01 Sep 2009 16:38:26 +0000 |
parents | 7f66b8e40f2d |
children | 8fd0ac8c8cab |
comparison
equal
deleted
inserted
replaced
567:893a9dd0b9dd | 568:005530560594 |
---|---|
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_in, int sock_out, char* remotehost); | 44 void common_session_init(int sock_in, int sock_out); |
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 |
50 const char* get_user_shell(); | 50 const char* get_user_shell(); |
51 void fill_passwd(const char* username); | 51 void fill_passwd(const char* username); |
52 | 52 |
53 /* Server */ | 53 /* Server */ |
54 void svr_session(int sock, int childpipe, char *remotehost, char *addrstring); | 54 void svr_session(int sock, int childpipe); |
55 void svr_dropbear_exit(int exitcode, const char* format, va_list param); | 55 void svr_dropbear_exit(int exitcode, const char* format, va_list param); |
56 void svr_dropbear_log(int priority, const char* format, va_list param); | 56 void svr_dropbear_log(int priority, const char* format, va_list param); |
57 | 57 |
58 /* Client */ | 58 /* Client */ |
59 void cli_session(int sock_in, int sock_out, char *remotehost); | 59 void cli_session(int sock_in, int sock_out); |
60 void cli_session_cleanup(); | 60 void cli_session_cleanup(); |
61 void cleantext(unsigned char* dirtytext); | 61 void cleantext(unsigned char* dirtytext); |
62 | 62 |
63 /* crypto parameters that are stored individually for transmit and receive */ | 63 /* crypto parameters that are stored individually for transmit and receive */ |
64 struct key_context_directional { | 64 struct key_context_directional { |
107 (cleared after auth once we're not | 107 (cleared after auth once we're not |
108 respecting AUTH_TIMEOUT any more) */ | 108 respecting AUTH_TIMEOUT any more) */ |
109 | 109 |
110 int sock_in; | 110 int sock_in; |
111 int sock_out; | 111 int sock_out; |
112 | |
113 unsigned char *remotehost; /* the peer hostname */ | |
114 | 112 |
115 unsigned char *remoteident; | 113 unsigned char *remoteident; |
116 | 114 |
117 int maxfd; /* the maximum file descriptor to check with select() */ | 115 int maxfd; /* the maximum file descriptor to check with select() */ |
118 | 116 |