Mercurial > dropbear
comparison session.h @ 550:61c3513825b0 agent-client
Talking to the agent works now. Can't interpret the pubkeys.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 01 Jul 2009 06:27:27 +0000 |
parents | cf376c696dfc |
children | c3f2ec71e3d4 |
comparison
equal
deleted
inserted
replaced
547:cf376c696dfc | 550:61c3513825b0 |
---|---|
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 | |
229 typedef enum { | 218 typedef enum { |
230 KEX_NOTHING, | 219 KEX_NOTHING, |
231 KEXINIT_RCVD, | 220 KEXINIT_RCVD, |
232 KEXDH_INIT_SENT, | 221 KEXDH_INIT_SENT, |
233 KEXDONE | 222 KEXDONE |