comparison cli-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
192 TRACE(("enter send_msg_service_request: servicename='%s'", servicename)) 192 TRACE(("enter send_msg_service_request: servicename='%s'", servicename))
193 193
194 CHECKCLEARTOWRITE(); 194 CHECKCLEARTOWRITE();
195 195
196 buf_putbyte(ses.writepayload, SSH_MSG_SERVICE_REQUEST); 196 buf_putbyte(ses.writepayload, SSH_MSG_SERVICE_REQUEST);
197 buf_putstring(ses.writepayload, (const unsigned char *)servicename, strlen(servicename)); 197 buf_putstring(ses.writepayload, servicename, strlen(servicename));
198 198
199 encrypt_packet(); 199 encrypt_packet();
200 TRACE(("leave send_msg_service_request")) 200 TRACE(("leave send_msg_service_request"))
201 } 201 }
202 202