Mercurial > dropbear
comparison algo.h @ 747:077bbe1eb220
merge kexguess branch
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 03 Apr 2013 00:49:24 +0800 |
parents | eafdf8b363f5 |
children | 7dcb46da72d9 |
comparison
equal
deleted
inserted
replaced
736:0b854ab00333 | 747:077bbe1eb220 |
---|---|
81 | 81 |
82 void crypto_init(); | 82 void crypto_init(); |
83 int have_algo(char* algo, size_t algolen, algo_type algos[]); | 83 int have_algo(char* algo, size_t algolen, algo_type algos[]); |
84 void buf_put_algolist(buffer * buf, algo_type localalgos[]); | 84 void buf_put_algolist(buffer * buf, algo_type localalgos[]); |
85 | 85 |
86 algo_type * svr_buf_match_algo(buffer* buf, algo_type localalgos[], | 86 enum kexguess2_used { |
87 int *goodguess); | 87 KEXGUESS2_LOOK, |
88 algo_type * cli_buf_match_algo(buffer* buf, algo_type localalgos[], | 88 KEXGUESS2_NO, |
89 int *goodguess); | 89 KEXGUESS2_YES, |
90 }; | |
91 | |
92 #define KEXGUESS2_ALGO_NAME "[email protected]" | |
93 #define KEXGUESS2_ALGO_ID 99 | |
94 | |
95 | |
96 algo_type * buf_match_algo(buffer* buf, algo_type localalgos[], | |
97 enum kexguess2_used *kexguess2, int *goodguess); | |
90 | 98 |
91 #ifdef ENABLE_USER_ALGO_LIST | 99 #ifdef ENABLE_USER_ALGO_LIST |
92 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, |
93 const char *algo_desc); | 101 const char *algo_desc); |
94 char * algolist_string(algo_type algos[]); | 102 char * algolist_string(algo_type algos[]); |