comparison session.h @ 24:469950e86d0f

switching to global vars
author Matt Johnston <matt@ucc.asn.au>
date Tue, 20 Jul 2004 12:05:00 +0000
parents c1e5d9195402
children 0969767bca0d
comparison
equal deleted inserted replaced
23:c896a4dd65da 24:469950e86d0f
30 #include "signkey.h" 30 #include "signkey.h"
31 #include "kex.h" 31 #include "kex.h"
32 #include "auth.h" 32 #include "auth.h"
33 #include "channel.h" 33 #include "channel.h"
34 #include "queue.h" 34 #include "queue.h"
35 #include "runopts.h"
36 #include "listener.h" 35 #include "listener.h"
37 #include "packet.h" 36 #include "packet.h"
38 37
39 extern int sessinitdone; /* Is set to 0 somewhere */ 38 extern int sessinitdone; /* Is set to 0 somewhere */
40 extern int exitflag; 39 extern int exitflag;
41 40
42 void common_session_init(int sock, runopts *opts); 41 void common_session_init(int sock);
43 void common_session_cleanup(); 42 void common_session_cleanup();
44 void checktimeouts(); 43 void checktimeouts();
45 void session_identification(); 44 void session_identification();
46 45
47 extern void(*session_remoteclosed)(); 46 extern void(*session_remoteclosed)();
48 47
49 /* Server */ 48 /* Server */
50 void svr_session(int sock, runopts *opts, int childpipe, 49 void svr_session(int sock, int childpipe, struct sockaddr *remoteaddr);
51 struct sockaddr *remoteaddr);
52 void svr_dropbear_exit(int exitcode, const char* format, va_list param); 50 void svr_dropbear_exit(int exitcode, const char* format, va_list param);
53 void svr_dropbear_log(int priority, const char* format, va_list param); 51 void svr_dropbear_log(int priority, const char* format, va_list param);
54 52
55 53
56 struct key_context { 54 struct key_context {
79 77
80 struct sshsession { 78 struct sshsession {
81 79
82 /* Is it a client or server? */ 80 /* Is it a client or server? */
83 unsigned char isserver; 81 unsigned char isserver;
84
85 runopts * opts; /* runtime options, incl hostkey, banner etc */
86 82
87 long connecttimeout; /* time to disconnect if we have a timeout (for 83 long connecttimeout; /* time to disconnect if we have a timeout (for
88 userauth etc), or 0 for no timeout */ 84 userauth etc), or 0 for no timeout */
89 85
90 int sock; 86 int sock;