Mercurial > dropbear
comparison common-session.c @ 33:f789045062e6
Progressing client support
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 27 Jul 2004 16:30:46 +0000 |
parents | 0969767bca0d |
children | e2a1eaa19f22 |
comparison
equal
deleted
inserted
replaced
32:8fd0cdbb5b1b | 33:f789045062e6 |
---|---|
43 int sessinitdone = 0; /* GLOBAL */ | 43 int sessinitdone = 0; /* GLOBAL */ |
44 | 44 |
45 /* this is set when we get SIGINT or SIGTERM, the handler is in main.c */ | 45 /* this is set when we get SIGINT or SIGTERM, the handler is in main.c */ |
46 int exitflag = 0; /* GLOBAL */ | 46 int exitflag = 0; /* GLOBAL */ |
47 | 47 |
48 void(*session_remoteclosed)() = NULL; | |
49 | |
50 | 48 |
51 static void checktimeouts(); | 49 static void checktimeouts(); |
52 static int ident_readln(int fd, char* buf, int count); | 50 static int ident_readln(int fd, char* buf, int count); |
53 | 51 |
54 /* called only at the start of a session, set up initial state */ | 52 /* called only at the start of a session, set up initial state */ |
61 ses.sock = sock; | 59 ses.sock = sock; |
62 ses.maxfd = sock; | 60 ses.maxfd = sock; |
63 | 61 |
64 ses.connecttimeout = 0; | 62 ses.connecttimeout = 0; |
65 | 63 |
66 kexinitialise(); /* initialise the kex state */ | 64 kexfirstinitialise(); /* initialise the kex state */ |
67 chaninitialise(); /* initialise the channel state */ | 65 chaninitialise(); /* initialise the channel state */ |
68 | 66 |
69 ses.writepayload = buf_new(MAX_TRANS_PAYLOAD_LEN); | 67 ses.writepayload = buf_new(MAX_TRANS_PAYLOAD_LEN); |
70 ses.transseq = 0; | 68 ses.transseq = 0; |
71 | 69 |
101 ses.session_id = NULL; | 99 ses.session_id = NULL; |
102 ses.kexhashbuf = NULL; | 100 ses.kexhashbuf = NULL; |
103 ses.transkexinit = NULL; | 101 ses.transkexinit = NULL; |
104 ses.dh_K = NULL; | 102 ses.dh_K = NULL; |
105 ses.remoteident = NULL; | 103 ses.remoteident = NULL; |
106 | |
107 ses.authdone = 0; | |
108 | 104 |
109 ses.chantypes = NULL; | 105 ses.chantypes = NULL; |
110 | 106 |
111 ses.allowprivport = 0; | 107 ses.allowprivport = 0; |
112 | 108 |