diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-06-04 23:08:50 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-06-04 23:08:50 +0800 |
commit | d96a52541f0f89836e99fea2d1bb8e3f4a1f4144 (patch) | |
tree | 4eedfa1c5b7e94fb6d930e2528c4d3eb6c27a7c2 /cli-auth.c | |
parent | ecd850521816dc2a78792fc53dd9c6c80d5d1b91 (diff) | |
parent | 9fdab3ced8374b991bfadce0056cf5bdf7cfb3d6 (diff) |
Merge pull request #13 from gazoo74/fix-warnings
Fix warnings
Diffstat (limited to 'cli-auth.c')
-rw-r--r-- | cli-auth.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -43,9 +43,9 @@ void cli_auth_getmethods() { TRACE(("enter cli_auth_getmethods")) CHECKCLEARTOWRITE(); buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_REQUEST); - buf_putstring(ses.writepayload, cli_opts.username, + buf_putstring(ses.writepayload, cli_opts.username, strlen(cli_opts.username)); - buf_putstring(ses.writepayload, SSH_SERVICE_CONNECTION, + buf_putstring(ses.writepayload, SSH_SERVICE_CONNECTION, SSH_SERVICE_CONNECTION_LEN); buf_putstring(ses.writepayload, "none", 4); /* 'none' method */ @@ -75,7 +75,7 @@ void cli_auth_getmethods() { void recv_msg_userauth_banner() { - unsigned char* banner = NULL; + char* banner = NULL; unsigned int bannerlen; unsigned int i, linecount; @@ -151,8 +151,8 @@ void recv_msg_userauth_specific_60() { void recv_msg_userauth_failure() { - unsigned char * methods = NULL; - unsigned char * tok = NULL; + char * methods = NULL; + char * tok = NULL; unsigned int methlen = 0; unsigned int partial = 0; unsigned int i = 0; |