Mercurial > dropbear
comparison session.h @ 1043:38d2f6b2d1b8
Add more ATTRIB_NORETURN annotations, from Thorsten Horstmann
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 24 Feb 2015 22:36:20 +0800 |
parents | deed0571cacc |
children | 01eea88963f3 |
comparison
equal
deleted
inserted
replaced
1042:9699b9438ad9 | 1043:38d2f6b2d1b8 |
---|---|
41 | 41 |
42 extern int sessinitdone; /* Is set to 0 somewhere */ | 42 extern int sessinitdone; /* Is set to 0 somewhere */ |
43 extern int exitflag; | 43 extern int exitflag; |
44 | 44 |
45 void common_session_init(int sock_in, int sock_out); | 45 void common_session_init(int sock_in, int sock_out); |
46 void session_loop(void(*loophandler)()); | 46 void session_loop(void(*loophandler)()) ATTRIB_NORETURN; |
47 void session_cleanup(); | 47 void session_cleanup(); |
48 void send_session_identification(); | 48 void send_session_identification(); |
49 void send_msg_ignore(); | 49 void send_msg_ignore(); |
50 void ignore_recv_response(); | 50 void ignore_recv_response(); |
51 | 51 |
53 | 53 |
54 const char* get_user_shell(); | 54 const char* get_user_shell(); |
55 void fill_passwd(const char* username); | 55 void fill_passwd(const char* username); |
56 | 56 |
57 /* Server */ | 57 /* Server */ |
58 void svr_session(int sock, int childpipe); | 58 void svr_session(int sock, int childpipe) ATTRIB_NORETURN; |
59 void svr_dropbear_exit(int exitcode, const char* format, va_list param) ATTRIB_NORETURN; | 59 void svr_dropbear_exit(int exitcode, const char* format, va_list param) ATTRIB_NORETURN; |
60 void svr_dropbear_log(int priority, const char* format, va_list param); | 60 void svr_dropbear_log(int priority, const char* format, va_list param); |
61 | 61 |
62 /* Client */ | 62 /* Client */ |
63 void cli_session(int sock_in, int sock_out); | 63 void cli_session(int sock_in, int sock_out) ATTRIB_NORETURN; |
64 void cleantext(unsigned char* dirtytext); | 64 void cleantext(unsigned char* dirtytext); |
65 | 65 |
66 /* crypto parameters that are stored individually for transmit and receive */ | 66 /* crypto parameters that are stored individually for transmit and receive */ |
67 struct key_context_directional { | 67 struct key_context_directional { |
68 const struct dropbear_cipher *algo_crypt; | 68 const struct dropbear_cipher *algo_crypt; |