Mercurial > dropbear
comparison session.h @ 547:cf376c696dfc agent-client
Make it compile, update for changes in channel structure.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 01 Jul 2009 04:53:17 +0000 |
parents | 0431915df79f |
children | 61c3513825b0 |
comparison
equal
deleted
inserted
replaced
546:568638be7203 | 547:cf376c696dfc |
---|---|
213 /* The numeric address they connected from, used for logging */ | 213 /* The numeric address they connected from, used for logging */ |
214 char * addrstring; | 214 char * addrstring; |
215 | 215 |
216 }; | 216 }; |
217 | 217 |
218 struct protocol { | |
219 int sock; /* read/write with this */ | |
220 buffer * readbuf; /* Pending input data, should read a packet's worth */ | |
221 struct Queue writequeue; /* A queue of output buffers to send */ | |
222 void (*process)(); /* To be called after reading */ | |
223 size_t (*bytes_to_read)(); | |
224 void * state; /* protocol specific */ | |
225 void (*protocol_closed)(); /* to be run when the sock gets closed */ | |
226 void (*loop_handler)(); /* to run at end of each loop */ | |
227 }; | |
228 | |
218 typedef enum { | 229 typedef enum { |
219 KEX_NOTHING, | 230 KEX_NOTHING, |
220 KEXINIT_RCVD, | 231 KEXINIT_RCVD, |
221 KEXDH_INIT_SENT, | 232 KEXDH_INIT_SENT, |
222 KEXDONE | 233 KEXDONE |