comparison algo.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 7dcb46da72d9
comparison
equal deleted inserted replaced
740:3062da90dab8 741:eafdf8b363f5
91 91
92 #define KEXGUESS2_ALGO_NAME "[email protected]" 92 #define KEXGUESS2_ALGO_NAME "[email protected]"
93 #define KEXGUESS2_ALGO_ID 99 93 #define KEXGUESS2_ALGO_ID 99
94 94
95 95
96 algo_type * svr_buf_match_algo(buffer* buf, algo_type localalgos[], 96 algo_type * buf_match_algo(buffer* buf, algo_type localalgos[],
97 enum kexguess2_used *kexguess2, int *goodguess);
98 algo_type * cli_buf_match_algo(buffer* buf, algo_type localalgos[],
99 enum kexguess2_used *kexguess2, int *goodguess); 97 enum kexguess2_used *kexguess2, int *goodguess);
100 98
101 #ifdef ENABLE_USER_ALGO_LIST 99 #ifdef ENABLE_USER_ALGO_LIST
102 int check_user_algos(const char* user_algo_list, algo_type * algos, 100 int check_user_algos(const char* user_algo_list, algo_type * algos,
103 const char *algo_desc); 101 const char *algo_desc);