comparison common-session.c @ 1123:d7b752525b91

buf_getstring and buf_putstring now use non-unsigned char*
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Jun 2015 23:08:50 +0800
parents bb3a03feb31f
children 6aeadee3f16b
comparison
equal deleted inserted replaced
1121:bb3a03feb31f 1123:d7b752525b91
465 } else { 465 } else {
466 TRACE(("keepalive global request")) 466 TRACE(("keepalive global request"))
467 /* Some peers will reply with SSH_MSG_REQUEST_FAILURE, 467 /* Some peers will reply with SSH_MSG_REQUEST_FAILURE,
468 some will reply with SSH_MSG_UNIMPLEMENTED, some will exit. */ 468 some will reply with SSH_MSG_UNIMPLEMENTED, some will exit. */
469 buf_putbyte(ses.writepayload, SSH_MSG_GLOBAL_REQUEST); 469 buf_putbyte(ses.writepayload, SSH_MSG_GLOBAL_REQUEST);
470 buf_putstring(ses.writepayload, (const unsigned char *) DROPBEAR_KEEPALIVE_STRING, 470 buf_putstring(ses.writepayload, DROPBEAR_KEEPALIVE_STRING,
471 strlen(DROPBEAR_KEEPALIVE_STRING)); 471 strlen(DROPBEAR_KEEPALIVE_STRING));
472 } 472 }
473 buf_putbyte(ses.writepayload, 1); /* want_reply */ 473 buf_putbyte(ses.writepayload, 1); /* want_reply */
474 encrypt_packet(); 474 encrypt_packet();
475 475