Mercurial > dropbear
comparison common-session.c @ 1094:c45d65392c1a
Fix pointer differ in signess warnings [-Werror=pointer-sign]
author | Gaël PORTAY <gael.portay@gmail.com> |
---|---|
date | Sat, 02 May 2015 15:59:06 +0200 |
parents | acf444bcb115 |
children | bb3a03feb31f aaf576b27a10 |
comparison
equal
deleted
inserted
replaced
1093:aae71c5f7d5b | 1094:c45d65392c1a |
---|---|
327 TRACE(("leave session_cleanup")) | 327 TRACE(("leave session_cleanup")) |
328 } | 328 } |
329 | 329 |
330 void send_session_identification() { | 330 void send_session_identification() { |
331 buffer *writebuf = buf_new(strlen(LOCAL_IDENT "\r\n") + 1); | 331 buffer *writebuf = buf_new(strlen(LOCAL_IDENT "\r\n") + 1); |
332 buf_putbytes(writebuf, LOCAL_IDENT "\r\n", strlen(LOCAL_IDENT "\r\n")); | 332 buf_putbytes(writebuf, (const unsigned char *) LOCAL_IDENT "\r\n", strlen(LOCAL_IDENT "\r\n")); |
333 writebuf_enqueue(writebuf, 0); | 333 writebuf_enqueue(writebuf, 0); |
334 } | 334 } |
335 | 335 |
336 static void read_session_identification() { | 336 static void read_session_identification() { |
337 /* max length of 255 chars */ | 337 /* max length of 255 chars */ |
467 } else { | 467 } else { |
468 TRACE(("keepalive global request")) | 468 TRACE(("keepalive global request")) |
469 /* Some peers will reply with SSH_MSG_REQUEST_FAILURE, | 469 /* Some peers will reply with SSH_MSG_REQUEST_FAILURE, |
470 some will reply with SSH_MSG_UNIMPLEMENTED, some will exit. */ | 470 some will reply with SSH_MSG_UNIMPLEMENTED, some will exit. */ |
471 buf_putbyte(ses.writepayload, SSH_MSG_GLOBAL_REQUEST); | 471 buf_putbyte(ses.writepayload, SSH_MSG_GLOBAL_REQUEST); |
472 buf_putstring(ses.writepayload, DROPBEAR_KEEPALIVE_STRING, | 472 buf_putstring(ses.writepayload, (const unsigned char *) DROPBEAR_KEEPALIVE_STRING, |
473 strlen(DROPBEAR_KEEPALIVE_STRING)); | 473 strlen(DROPBEAR_KEEPALIVE_STRING)); |
474 } | 474 } |
475 buf_putbyte(ses.writepayload, 1); /* want_reply */ | 475 buf_putbyte(ses.writepayload, 1); /* want_reply */ |
476 encrypt_packet(); | 476 encrypt_packet(); |
477 | 477 |