summaryrefslogtreecommitdiffhomepage
path: root/cli-auth.c
diff options
context:
space:
mode:
authorGaël PORTAY <gael.portay@gmail.com>2015-05-05 20:42:38 +0200
committerGaël PORTAY <gael.portay@gmail.com>2015-05-05 20:42:38 +0200
commit9fdab3ced8374b991bfadce0056cf5bdf7cfb3d6 (patch)
tree5da161bb2372d7a203dd39c616701ae090bb730d /cli-auth.c
parentef0aac432c986f52a1b973bcd73ddf7324e0e70f (diff)
parent6e15e75391fc117125f50efd9f3d8ed646596da9 (diff)
Merge branch 'fix-pointer-sign-warnings' into fix-warnings
Diffstat (limited to 'cli-auth.c')
-rw-r--r--cli-auth.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/cli-auth.c b/cli-auth.c
index 70ace65..999ac7f 100644
--- a/cli-auth.c
+++ b/cli-auth.c
@@ -43,11 +43,11 @@ 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, (const unsigned char *)cli_opts.username,
strlen(cli_opts.username));
- buf_putstring(ses.writepayload, SSH_SERVICE_CONNECTION,
+ buf_putstring(ses.writepayload, (const unsigned char *)SSH_SERVICE_CONNECTION,
SSH_SERVICE_CONNECTION_LEN);
- buf_putstring(ses.writepayload, "none", 4); /* 'none' method */
+ buf_putstring(ses.writepayload, (const unsigned char *)"none", 4); /* 'none' method */
encrypt_packet();
@@ -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;
@@ -85,7 +85,7 @@ void recv_msg_userauth_banner() {
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_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;
@@ -201,7 +201,7 @@ void recv_msg_userauth_failure() {
cli_ses.lastauthtype = AUTH_TYPE_NONE;
}
- methods = buf_getstring(ses.payload, &methlen);
+ methods = (char *)buf_getstring(ses.payload, &methlen);
partial = buf_getbool(ses.payload);