diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-03-29 23:29:48 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-03-29 23:29:48 +0800 |
commit | 99d9cf500b30c77107bf8477dd55831626f9beaf (patch) | |
tree | 6ad847a1d5fc2a8317e1597f8e5be7350c480c37 /algo.h | |
parent | 4f62da0f0d5da78b6c7a0cf507307aeacc8ac842 (diff) |
Add kexguess2 behaviour
--HG--
branch : kexguess
Diffstat (limited to 'algo.h')
-rw-r--r-- | algo.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -83,10 +83,20 @@ void crypto_init(); int have_algo(char* algo, size_t algolen, algo_type algos[]); void buf_put_algolist(buffer * buf, algo_type localalgos[]); +enum kexguess2_used { + KEXGUESS2_LOOK, + KEXGUESS2_NO, + KEXGUESS2_YES, +}; + +#define KEXGUESS2_ALGO_NAME "kexguess2@matt.ucc.asn.au" +#define KEXGUESS2_ALGO_ID 99 + + algo_type * svr_buf_match_algo(buffer* buf, algo_type localalgos[], - int *goodguess); + enum kexguess2_used *kexguess2, int *goodguess); algo_type * cli_buf_match_algo(buffer* buf, algo_type localalgos[], - int *goodguess); + enum kexguess2_used *kexguess2, int *goodguess); #ifdef ENABLE_USER_ALGO_LIST int check_user_algos(const char* user_algo_list, algo_type * algos, |