Mercurial > dropbear
comparison algo.h @ 1676:d5cdc60db08e
ext-info handling for server-sig-algs
only client side is handled
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 19 May 2020 00:31:41 +0800 |
parents | ba6fc7afe1c5 |
children | 4b4cfc92c5b7 |
comparison
equal
deleted
inserted
replaced
1675:ae41624c2198 | 1676:d5cdc60db08e |
---|---|
112 const struct ltc_hash_descriptor *hash_desc; | 112 const struct ltc_hash_descriptor *hash_desc; |
113 }; | 113 }; |
114 | 114 |
115 void buf_put_algolist(buffer * buf, const algo_type localalgos[]); | 115 void buf_put_algolist(buffer * buf, const algo_type localalgos[]); |
116 | 116 |
117 enum kexguess2_used { | 117 #define KEXGUESS2_ALGO_NAME "[email protected]" |
118 KEXGUESS2_LOOK, | |
119 KEXGUESS2_NO, | |
120 KEXGUESS2_YES, | |
121 }; | |
122 | 118 |
123 #define KEXGUESS2_ALGO_NAME "[email protected]" | 119 int buf_has_algo(buffer *buf, const char *algo); |
124 #define KEXGUESS2_ALGO_ID 99 | |
125 | |
126 | |
127 algo_type * buf_match_algo(buffer* buf, algo_type localalgos[], | 120 algo_type * buf_match_algo(buffer* buf, algo_type localalgos[], |
128 enum kexguess2_used *kexguess2, int *goodguess); | 121 int kexguess2, int *goodguess); |
129 | 122 |
130 #if DROPBEAR_USER_ALGO_LIST | 123 #if DROPBEAR_USER_ALGO_LIST |
131 int check_user_algos(const char* user_algo_list, algo_type * algos, | 124 int check_user_algos(const char* user_algo_list, algo_type * algos, |
132 const char *algo_desc); | 125 const char *algo_desc); |
133 char * algolist_string(const algo_type algos[]); | 126 char * algolist_string(const algo_type algos[]); |