comparison session.h @ 1208:fb58cf341951

Client: kill proxy command when exiting application.
author Konstantin Tokarev <ktokarev@smartlabs.tv>
date Thu, 03 Dec 2015 16:22:29 +0300
parents 80b45616e1f3
children d058e15ea213
comparison
equal deleted inserted replaced
1195:8a5e9a97bd7a 1208:fb58cf341951
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;
61 void svr_dropbear_log(int priority, const char* format, va_list param); 61 void svr_dropbear_log(int priority, const char* format, va_list param);
62 62
63 /* Client */ 63 /* Client */
64 void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection *progress) 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 68
68 /* crypto parameters that are stored individually for transmit and receive */ 69 /* crypto parameters that are stored individually for transmit and receive */
69 struct key_context_directional { 70 struct key_context_directional {
70 const struct dropbear_cipher *algo_crypt; 71 const struct dropbear_cipher *algo_crypt;
71 const struct dropbear_cipher_mode *crypt_mode; 72 const struct dropbear_cipher_mode *crypt_mode;
302 #if 0 303 #if 0
303 TODO 304 TODO
304 struct AgentkeyList *agentkeys; /* Keys to use for public-key auth */ 305 struct AgentkeyList *agentkeys; /* Keys to use for public-key auth */
305 #endif 306 #endif
306 307
308 int proxy_cmd_pid;
307 }; 309 };
308 310
309 /* Global structs storing the state */ 311 /* Global structs storing the state */
310 extern struct sshsession ses; 312 extern struct sshsession ses;
311 313