Mercurial > dropbear
comparison session.h @ 1049:01eea88963f3 fastopen
merge from default
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 28 Feb 2015 09:06:40 +0800 |
parents | 0da8ba489c23 38d2f6b2d1b8 |
children | 4d7b4c5526c5 |
comparison
equal
deleted
inserted
replaced
1048:9cec9ed503bb | 1049:01eea88963f3 |
---|---|
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23 * SOFTWARE. */ | 23 * SOFTWARE. */ |
24 | 24 |
25 #ifndef _SESSION_H_ | 25 #ifndef DROPBEAR_SESSION_H_ |
26 #define _SESSION_H_ | 26 #define DROPBEAR_SESSION_H_ |
27 | 27 |
28 #include "includes.h" | 28 #include "includes.h" |
29 #include "options.h" | 29 #include "options.h" |
30 #include "buffer.h" | 30 #include "buffer.h" |
31 #include "signkey.h" | 31 #include "signkey.h" |
42 | 42 |
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)()); | 47 void session_loop(void(*loophandler)()) ATTRIB_NORETURN; |
48 void session_cleanup(); | 48 void session_cleanup(); |
49 void send_session_identification(); | 49 void send_session_identification(); |
50 void send_msg_ignore(); | 50 void send_msg_ignore(); |
51 void ignore_recv_response(); | 51 void ignore_recv_response(); |
52 | 52 |
54 | 54 |
55 const char* get_user_shell(); | 55 const char* get_user_shell(); |
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); | 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); | 64 void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection *progress) 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(unsigned char* dirtytext); | 66 void cleantext(unsigned char* dirtytext); |
67 | 67 |
68 /* crypto parameters that are stored individually for transmit and receive */ | 68 /* crypto parameters that are stored individually for transmit and receive */ |
69 struct key_context_directional { | 69 struct key_context_directional { |
311 | 311 |
312 #ifdef DROPBEAR_CLIENT | 312 #ifdef DROPBEAR_CLIENT |
313 extern struct clientsession cli_ses; | 313 extern struct clientsession cli_ses; |
314 #endif /* DROPBEAR_CLIENT */ | 314 #endif /* DROPBEAR_CLIENT */ |
315 | 315 |
316 #endif /* _SESSION_H_ */ | 316 #endif /* DROPBEAR_SESSION_H_ */ |