summaryrefslogtreecommitdiff
path: root/common-kex.c
diff options
context:
space:
mode:
authorGa?l PORTAY <gael.portay@gmail.com>2015-05-02 22:48:11 +0200
committerGa?l PORTAY <gael.portay@gmail.com>2015-05-02 22:48:11 +0200
commita822d20bb354acebe60fe5bf17f269b3c1bc457f (patch)
tree601a98db18f6877fae3250de47972b11a3a1f5a6 /common-kex.c
parent1e720f88729db5e56dff2085b7a0f3faf70e34cd (diff)
downloaddropbear-a822d20bb354acebe60fe5bf17f269b3c1bc457f.tar.gz
Turn sshsession's remoteident attribute into char *
Diffstat (limited to 'common-kex.c')
-rw-r--r--common-kex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common-kex.c b/common-kex.c
index c823f19..4de4b52 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -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);