Mercurial > dropbear
diff cli-auth.c @ 1115:efb7e545a65e
Turn banner, methods and tok local variable into char *
author | Gaël PORTAY <gael.portay@gmail.com> |
---|---|
date | Sat, 02 May 2015 23:48:57 +0200 |
parents | c45d65392c1a |
children | aaf576b27a10 |
line wrap: on
line diff
--- a/cli-auth.c Sat May 02 23:40:30 2015 +0200 +++ b/cli-auth.c Sat May 02 23:48:57 2015 +0200 @@ -75,7 +75,7 @@ void recv_msg_userauth_banner() { - unsigned char* banner = NULL; + char* banner = NULL; unsigned int bannerlen; unsigned int i, linecount; @@ -85,7 +85,7 @@ return; } - banner = buf_getstring(ses.payload, &bannerlen); + banner = (char *)buf_getstring(ses.payload, &bannerlen); buf_eatstring(ses.payload); /* The language string */ if (bannerlen > MAX_BANNER_SIZE) { @@ -151,8 +151,8 @@ 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; @@ -201,7 +201,7 @@ cli_ses.lastauthtype = AUTH_TYPE_NONE; } - methods = buf_getstring(ses.payload, &methlen); + methods = (char *)buf_getstring(ses.payload, &methlen); partial = buf_getbool(ses.payload);