diff options
author | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:42:38 +0200 |
---|---|---|
committer | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:42:38 +0200 |
commit | 9fdab3ced8374b991bfadce0056cf5bdf7cfb3d6 (patch) | |
tree | 5da161bb2372d7a203dd39c616701ae090bb730d /common-kex.c | |
parent | ef0aac432c986f52a1b973bcd73ddf7324e0e70f (diff) | |
parent | 6e15e75391fc117125f50efd9f3d8ed646596da9 (diff) |
Merge branch 'fix-pointer-sign-warnings' into fix-warnings
Diffstat (limited to 'common-kex.c')
-rw-r--r-- | common-kex.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common-kex.c b/common-kex.c index 0e477da..4de4b52 100644 --- a/common-kex.c +++ b/common-kex.c @@ -128,10 +128,10 @@ void send_msg_kexinit() { buf_put_algolist(ses.writepayload, ses.compress_algos); /* languages_client_to_server */ - buf_putstring(ses.writepayload, "", 0); + buf_putstring(ses.writepayload, (const unsigned char *) "", 0); /* languages_server_to_client */ - buf_putstring(ses.writepayload, "", 0); + buf_putstring(ses.writepayload, (const unsigned char *) "", 0); /* first_kex_packet_follows */ buf_putbyte(ses.writepayload, (ses.send_kex_first_guess != NULL)); @@ -511,7 +511,7 @@ void recv_msg_kexinit() { /* start the kex hash */ local_ident_len = strlen(LOCAL_IDENT); - remote_ident_len = strlen((char*)ses.remoteident); + remote_ident_len = strlen(ses.remoteident); kexhashbuf_len = local_ident_len + remote_ident_len + ses.transkexinit->len + ses.payload->len @@ -528,7 +528,7 @@ void recv_msg_kexinit() { buf_putstring(ses.kexhashbuf, (unsigned char*)LOCAL_IDENT, local_ident_len); /* V_S, the server's version string (CR and NL excluded) */ - buf_putstring(ses.kexhashbuf, ses.remoteident, remote_ident_len); + buf_putstring(ses.kexhashbuf, (unsigned char*)ses.remoteident, remote_ident_len); /* I_C, the payload of the client's SSH_MSG_KEXINIT */ buf_putstring(ses.kexhashbuf, @@ -545,7 +545,7 @@ void recv_msg_kexinit() { /* read the peer's choice of algos */ read_kex_algos(); /* V_C, the client's version string (CR and NL excluded) */ - buf_putstring(ses.kexhashbuf, ses.remoteident, remote_ident_len); + buf_putstring(ses.kexhashbuf, (unsigned char*)ses.remoteident, remote_ident_len); /* V_S, the server's version string (CR and NL excluded) */ buf_putstring(ses.kexhashbuf, (unsigned char*)LOCAL_IDENT, local_ident_len); |