Get rid of client/server specific buf_match_algo, use single

function with a couple of if statements instead

--HG--
branch : kexguess
This commit is contained in:
Matt Johnston
2013-03-30 23:55:05 +08:00
parent 99d9cf500b
commit 9c7485331a
9 changed files with 128 additions and 267 deletions

View File

@@ -169,13 +169,6 @@ struct sshsession {
concluded (ie, while dataallowed was unset)*/
struct packetlist *reply_queue_head, *reply_queue_tail;
algo_type*(*buf_match_algo)(buffer*buf, algo_type localalgos[],
enum kexguess2_used *kexguess2,
int *goodguess); /* The function to use to choose which algorithm
to use from the ones presented by the remote
side. Is specific to the client/server mode,
hence the function-pointer callback.*/
void(*remoteclosed)(); /* A callback to handle closure of the
remote connection */