comparison session.h @ 741:eafdf8b363f5 kexguess

Get rid of client/server specific buf_match_algo, use single function with a couple of if statements instead
author Matt Johnston <matt@ucc.asn.au>
date Sat, 30 Mar 2013 23:55:05 +0800
parents 3062da90dab8
children cd201dc2da9a
comparison
equal deleted inserted replaced
740:3062da90dab8 741:eafdf8b363f5
167 167
168 /* a list of queued replies that should be sent after a KEX has 168 /* a list of queued replies that should be sent after a KEX has
169 concluded (ie, while dataallowed was unset)*/ 169 concluded (ie, while dataallowed was unset)*/
170 struct packetlist *reply_queue_head, *reply_queue_tail; 170 struct packetlist *reply_queue_head, *reply_queue_tail;
171 171
172 algo_type*(*buf_match_algo)(buffer*buf, algo_type localalgos[],
173 enum kexguess2_used *kexguess2,
174 int *goodguess); /* The function to use to choose which algorithm
175 to use from the ones presented by the remote
176 side. Is specific to the client/server mode,
177 hence the function-pointer callback.*/
178
179 void(*remoteclosed)(); /* A callback to handle closure of the 172 void(*remoteclosed)(); /* A callback to handle closure of the
180 remote connection */ 173 remote connection */
181 174
182 void(*send_kex_first_guess)(); 175 void(*send_kex_first_guess)();
183 176