diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 17:16:13 +0200 |
---|---|---|
committer | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 17:16:13 +0200 |
commit | 89e64c631ec8dee41ec4de888548d36887b6ec98 (patch) | |
tree | 91fc3aee54e9b9cac7ec893ddf91cb944e3fc220 /cli-kex.c | |
parent | 468656b4aab5bc0040e3ecbfd7f66f52a15da76d (diff) |
Pointer parameter could be declared as pointing to const
Diffstat (limited to 'cli-kex.c')
-rw-r--r-- | cli-kex.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -39,7 +39,7 @@ #include "ecc.h" -static void checkhostkey(unsigned char* keyblob, unsigned int keybloblen); +static void checkhostkey(const unsigned char* keyblob, unsigned int keybloblen); #define MAX_KNOWNHOSTS_LINE 4500 void send_msg_kexdh_init() { @@ -185,7 +185,7 @@ void recv_msg_kexdh_reply() { TRACE(("leave recv_msg_kexdh_init")) } -static void ask_to_confirm(unsigned char* keyblob, unsigned int keybloblen, +static void ask_to_confirm(const unsigned char* keyblob, unsigned int keybloblen, const char* algoname) { char* fp = NULL; @@ -282,7 +282,7 @@ out: return hostsfile; } -static void checkhostkey(unsigned char* keyblob, unsigned int keybloblen) { +static void checkhostkey(const unsigned char* keyblob, unsigned int keybloblen) { FILE *hostsfile = NULL; int readonly = 0; |