comparison algo.h @ 801:7dcb46da72d9 ecc

merge in HEAD
author Matt Johnston <matt@ucc.asn.au>
date Tue, 21 May 2013 12:09:35 +0800
parents 70625eed40c9 eafdf8b363f5
children 6c69e7df3621
comparison
equal deleted inserted replaced
799:c344607b7341 801:7dcb46da72d9
96 }; 96 };
97 97
98 int have_algo(char* algo, size_t algolen, algo_type algos[]); 98 int have_algo(char* algo, size_t algolen, algo_type algos[]);
99 void buf_put_algolist(buffer * buf, algo_type localalgos[]); 99 void buf_put_algolist(buffer * buf, algo_type localalgos[]);
100 100
101 algo_type * svr_buf_match_algo(buffer* buf, algo_type localalgos[], 101 enum kexguess2_used {
102 int *goodguess); 102 KEXGUESS2_LOOK,
103 algo_type * cli_buf_match_algo(buffer* buf, algo_type localalgos[], 103 KEXGUESS2_NO,
104 int *goodguess); 104 KEXGUESS2_YES,
105 };
106
107 #define KEXGUESS2_ALGO_NAME "[email protected]"
108 #define KEXGUESS2_ALGO_ID 99
109
110
111 algo_type * buf_match_algo(buffer* buf, algo_type localalgos[],
112 enum kexguess2_used *kexguess2, int *goodguess);
105 113
106 #ifdef ENABLE_USER_ALGO_LIST 114 #ifdef ENABLE_USER_ALGO_LIST
107 int check_user_algos(const char* user_algo_list, algo_type * algos, 115 int check_user_algos(const char* user_algo_list, algo_type * algos,
108 const char *algo_desc); 116 const char *algo_desc);
109 char * algolist_string(algo_type algos[]); 117 char * algolist_string(algo_type algos[]);