Mercurial > dropbear
diff 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 |
line wrap: on
line diff
--- a/algo.h Tue Jan 23 22:44:18 2018 +0800 +++ b/algo.h Thu Jan 25 21:55:25 2018 +0800 @@ -112,8 +112,8 @@ const struct ltc_hash_descriptor *hash_desc; }; -int have_algo(char* algo, size_t algolen, algo_type algos[]); -void buf_put_algolist(buffer * buf, algo_type localalgos[]); +int have_algo(const char* algo, size_t algolen, const algo_type algos[]); +void buf_put_algolist(buffer * buf, const algo_type localalgos[]); enum kexguess2_used { KEXGUESS2_LOOK, @@ -131,7 +131,7 @@ #if DROPBEAR_USER_ALGO_LIST int check_user_algos(const char* user_algo_list, algo_type * algos, const char *algo_desc); -char * algolist_string(algo_type algos[]); +char * algolist_string(const algo_type algos[]); #endif enum {