comparison session.h @ 1046:b8f4b7027191 coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Tue, 24 Feb 2015 22:48:34 +0800
parents 38d2f6b2d1b8
children 01eea88963f3
comparison
equal deleted inserted replaced
1014:37c510c2ac7c 1046:b8f4b7027191
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"
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;
307 307
308 #ifdef DROPBEAR_CLIENT 308 #ifdef DROPBEAR_CLIENT
309 extern struct clientsession cli_ses; 309 extern struct clientsession cli_ses;
310 #endif /* DROPBEAR_CLIENT */ 310 #endif /* DROPBEAR_CLIENT */
311 311
312 #endif /* _SESSION_H_ */ 312 #endif /* DROPBEAR_SESSION_H_ */