comparison algo.h @ 1461:fb90a5ba84e0

Merge pull request #49 from fperrad/20170812_lint Some linting, const parameters
author Matt Johnston <matt@ucc.asn.au>
date Thu, 25 Jan 2018 21:55:25 +0800
parents 06d52bcb8094
children 3a97f14c0235 ba6fc7afe1c5
comparison
equal deleted inserted replaced
1454:ef310db5ccec 1461:fb90a5ba84e0
110 110
111 /* both */ 111 /* both */
112 const struct ltc_hash_descriptor *hash_desc; 112 const struct ltc_hash_descriptor *hash_desc;
113 }; 113 };
114 114
115 int have_algo(char* algo, size_t algolen, algo_type algos[]); 115 int have_algo(const char* algo, size_t algolen, const algo_type algos[]);
116 void buf_put_algolist(buffer * buf, algo_type localalgos[]); 116 void buf_put_algolist(buffer * buf, const algo_type localalgos[]);
117 117
118 enum kexguess2_used { 118 enum kexguess2_used {
119 KEXGUESS2_LOOK, 119 KEXGUESS2_LOOK,
120 KEXGUESS2_NO, 120 KEXGUESS2_NO,
121 KEXGUESS2_YES, 121 KEXGUESS2_YES,
129 enum kexguess2_used *kexguess2, int *goodguess); 129 enum kexguess2_used *kexguess2, int *goodguess);
130 130
131 #if DROPBEAR_USER_ALGO_LIST 131 #if DROPBEAR_USER_ALGO_LIST
132 int check_user_algos(const char* user_algo_list, algo_type * algos, 132 int check_user_algos(const char* user_algo_list, algo_type * algos,
133 const char *algo_desc); 133 const char *algo_desc);
134 char * algolist_string(algo_type algos[]); 134 char * algolist_string(const algo_type algos[]);
135 #endif 135 #endif
136 136
137 enum { 137 enum {
138 DROPBEAR_COMP_NONE, 138 DROPBEAR_COMP_NONE,
139 DROPBEAR_COMP_ZLIB, 139 DROPBEAR_COMP_ZLIB,