Mercurial > dropbear
comparison algo.h @ 740:3062da90dab8 kexguess
Add kexguess2 behaviour
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 29 Mar 2013 23:29:48 +0800 |
parents | 63f8d6c469cf |
children | eafdf8b363f5 |
comparison
equal
deleted
inserted
replaced
739:d44325108d0e | 740:3062da90dab8 |
---|---|
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 enum kexguess2_used { | |
87 KEXGUESS2_LOOK, | |
88 KEXGUESS2_NO, | |
89 KEXGUESS2_YES, | |
90 }; | |
91 | |
92 #define KEXGUESS2_ALGO_NAME "[email protected]" | |
93 #define KEXGUESS2_ALGO_ID 99 | |
94 | |
95 | |
86 algo_type * svr_buf_match_algo(buffer* buf, algo_type localalgos[], | 96 algo_type * svr_buf_match_algo(buffer* buf, algo_type localalgos[], |
87 int *goodguess); | 97 enum kexguess2_used *kexguess2, int *goodguess); |
88 algo_type * cli_buf_match_algo(buffer* buf, algo_type localalgos[], | 98 algo_type * cli_buf_match_algo(buffer* buf, algo_type localalgos[], |
89 int *goodguess); | 99 enum kexguess2_used *kexguess2, int *goodguess); |
90 | 100 |
91 #ifdef ENABLE_USER_ALGO_LIST | 101 #ifdef ENABLE_USER_ALGO_LIST |
92 int check_user_algos(const char* user_algo_list, algo_type * algos, | 102 int check_user_algos(const char* user_algo_list, algo_type * algos, |
93 const char *algo_desc); | 103 const char *algo_desc); |
94 char * algolist_string(algo_type algos[]); | 104 char * algolist_string(algo_type algos[]); |