Lines Matching refs:outgoing_packet

148 	struct sshbuf *outgoing_packet;  member
241 (state->outgoing_packet = sshbuf_new()) == NULL || in ssh_alloc_session_state()
269 sshbuf_free(state->outgoing_packet); in ssh_alloc_session_state()
693 sshbuf_free(state->outgoing_packet); in ssh_packet_close_internal()
1187 type = (sshbuf_ptr(state->outgoing_packet))[5]; in ssh_packet_send2_wrapped()
1192 sshbuf_dump(state->outgoing_packet, stderr); in ssh_packet_send2_wrapped()
1196 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1198 if ((r = sshbuf_consume(state->outgoing_packet, 5)) != 0) in ssh_packet_send2_wrapped()
1201 if ((r = compress_buffer(ssh, state->outgoing_packet, in ssh_packet_send2_wrapped()
1204 sshbuf_reset(state->outgoing_packet); in ssh_packet_send2_wrapped()
1205 if ((r = sshbuf_put(state->outgoing_packet, in ssh_packet_send2_wrapped()
1207 (r = sshbuf_putb(state->outgoing_packet, in ssh_packet_send2_wrapped()
1211 sshbuf_len(state->outgoing_packet))); in ssh_packet_send2_wrapped()
1215 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1246 if ((r = sshbuf_reserve(state->outgoing_packet, padlen, &cp)) != 0) in ssh_packet_send2_wrapped()
1256 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1257 cp = sshbuf_mutable_ptr(state->outgoing_packet); in ssh_packet_send2_wrapped()
1271 sshbuf_ptr(state->outgoing_packet), len, in ssh_packet_send2_wrapped()
1278 sshbuf_len(state->outgoing_packet) + authlen, &cp)) != 0) in ssh_packet_send2_wrapped()
1281 sshbuf_ptr(state->outgoing_packet), in ssh_packet_send2_wrapped()
1314 sshbuf_reset(state->outgoing_packet); in ssh_packet_send2_wrapped()
1351 if (sshbuf_len(state->outgoing_packet) < 6) in ssh_packet_send2()
1353 type = sshbuf_ptr(state->outgoing_packet)[5]; in ssh_packet_send2()
1355 ssh_packet_need_rekeying(ssh, sshbuf_len(state->outgoing_packet)); in ssh_packet_send2()
1369 p->payload = state->outgoing_packet; in ssh_packet_send2()
1371 state->outgoing_packet = sshbuf_new(); in ssh_packet_send2()
1372 if (state->outgoing_packet == NULL) in ssh_packet_send2()
1409 sshbuf_free(state->outgoing_packet); in ssh_packet_send2()
1410 state->outgoing_packet = p->payload; in ssh_packet_send2()
2604 return sshbuf_put(ssh->state->outgoing_packet, v, len); in sshpkt_put()
2610 return sshbuf_putb(ssh->state->outgoing_packet, b); in sshpkt_putb()
2616 return sshbuf_put_u8(ssh->state->outgoing_packet, val); in sshpkt_put_u8()
2622 return sshbuf_put_u32(ssh->state->outgoing_packet, val); in sshpkt_put_u32()
2628 return sshbuf_put_u64(ssh->state->outgoing_packet, val); in sshpkt_put_u64()
2634 return sshbuf_put_string(ssh->state->outgoing_packet, v, len); in sshpkt_put_string()
2640 return sshbuf_put_cstring(ssh->state->outgoing_packet, v); in sshpkt_put_cstring()
2646 return sshbuf_put_stringb(ssh->state->outgoing_packet, v); in sshpkt_put_stringb()
2654 return sshbuf_put_ec(ssh->state->outgoing_packet, v, g); in sshpkt_put_ec()
2660 return sshbuf_put_ec_pkey(ssh->state->outgoing_packet, pkey); in sshpkt_put_ec_pkey()
2667 return sshbuf_put_bignum2(ssh->state->outgoing_packet, v); in sshpkt_put_bignum2()
2769 sshbuf_reset(ssh->state->outgoing_packet); in sshpkt_start()
2770 return sshbuf_put(ssh->state->outgoing_packet, buf, sizeof(buf)); in sshpkt_start()
2783 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send_mux()
2786 cp = sshbuf_mutable_ptr(state->outgoing_packet); in ssh_packet_send_mux()
2795 state->outgoing_packet)) != 0) in ssh_packet_send_mux()
2799 sshbuf_reset(state->outgoing_packet); in ssh_packet_send_mux()