comparison session.h @ 1286:7d02b83c61fd coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Fri, 18 Mar 2016 22:47:33 +0800
parents 9169e4e7cbee
children 750ec4ec4cbe
comparison
equal deleted inserted replaced
1261:770e14154da3 1286:7d02b83c61fd
43 extern int sessinitdone; /* Is set to 0 somewhere */ 43 extern int sessinitdone; /* Is set to 0 somewhere */
44 extern int exitflag; 44 extern int exitflag;
45 45
46 void common_session_init(int sock_in, int sock_out); 46 void common_session_init(int sock_in, int sock_out);
47 void session_loop(void(*loophandler)()) ATTRIB_NORETURN; 47 void session_loop(void(*loophandler)()) ATTRIB_NORETURN;
48 void session_cleanup(); 48 void session_cleanup(void);
49 void send_session_identification(); 49 void send_session_identification(void);
50 void send_msg_ignore(); 50 void send_msg_ignore(void);
51 void ignore_recv_response(); 51 void ignore_recv_response(void);
52 52
53 void update_channel_prio(); 53 void update_channel_prio(void);
54 54
55 const char* get_user_shell(); 55 const char* get_user_shell(void);
56 void fill_passwd(const char* username); 56 void fill_passwd(const char* username);
57 57
58 /* Server */ 58 /* Server */
59 void svr_session(int sock, int childpipe) ATTRIB_NORETURN; 59 void svr_session(int sock, int childpipe) ATTRIB_NORETURN;
60 void svr_dropbear_exit(int exitcode, const char* format, va_list param) ATTRIB_NORETURN; 60 void svr_dropbear_exit(int exitcode, const char* format, va_list param) ATTRIB_NORETURN;
62 62
63 /* Client */ 63 /* Client */
64 void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection *progress, pid_t proxy_cmd_pid) ATTRIB_NORETURN; 64 void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection *progress, pid_t proxy_cmd_pid) ATTRIB_NORETURN;
65 void cli_connected(int result, int sock, void* userdata, const char *errstring); 65 void cli_connected(int result, int sock, void* userdata, const char *errstring);
66 void cleantext(char* dirtytext); 66 void cleantext(char* dirtytext);
67 void kill_proxy_command(); 67 void kill_proxy_command(void);
68 68
69 /* crypto parameters that are stored individually for transmit and receive */ 69 /* crypto parameters that are stored individually for transmit and receive */
70 struct key_context_directional { 70 struct key_context_directional {
71 const struct dropbear_cipher *algo_crypt; 71 const struct dropbear_cipher *algo_crypt;
72 const struct dropbear_cipher_mode *crypt_mode; 72 const struct dropbear_cipher_mode *crypt_mode;
187 187
188 /* a list of queued replies that should be sent after a KEX has 188 /* a list of queued replies that should be sent after a KEX has
189 concluded (ie, while dataallowed was unset)*/ 189 concluded (ie, while dataallowed was unset)*/
190 struct packetlist *reply_queue_head, *reply_queue_tail; 190 struct packetlist *reply_queue_head, *reply_queue_tail;
191 191
192 void(*remoteclosed)(); /* A callback to handle closure of the 192 void(*remoteclosed)(void); /* A callback to handle closure of the
193 remote connection */ 193 remote connection */
194 194
195 void(*extra_session_cleanup)(); /* client or server specific cleanup */ 195 void(*extra_session_cleanup)(void); /* client or server specific cleanup */
196 void(*send_kex_first_guess)(); 196 void(*send_kex_first_guess)(void);
197 197
198 struct AuthState authstate; /* Common amongst client and server, since most 198 struct AuthState authstate; /* Common amongst client and server, since most
199 struct elements are common */ 199 struct elements are common */
200 200
201 /* Channel related */ 201 /* Channel related */