comparison algo.h @ 1459:06d52bcb8094

Pointer parameter could be declared as pointing to const
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 17:16:13 +0200
parents 750ec4ec4cbe
children 3a97f14c0235 ba6fc7afe1c5
comparison
equal deleted inserted replaced
1458:bdd3802c8ac6 1459:06d52bcb8094
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,