Lines Matching refs:outgoing_packet
147 struct sshbuf *outgoing_packet; member
240 (state->outgoing_packet = sshbuf_new()) == NULL || in ssh_alloc_session_state()
268 sshbuf_free(state->outgoing_packet); in ssh_alloc_session_state()
609 sshbuf_free(state->outgoing_packet); in ssh_packet_close_internal()
1091 type = (sshbuf_ptr(state->outgoing_packet))[5]; in ssh_packet_send2_wrapped()
1096 sshbuf_dump(state->outgoing_packet, stderr); in ssh_packet_send2_wrapped()
1100 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1102 if ((r = sshbuf_consume(state->outgoing_packet, 5)) != 0) in ssh_packet_send2_wrapped()
1105 if ((r = compress_buffer(ssh, state->outgoing_packet, in ssh_packet_send2_wrapped()
1108 sshbuf_reset(state->outgoing_packet); in ssh_packet_send2_wrapped()
1109 if ((r = sshbuf_put(state->outgoing_packet, in ssh_packet_send2_wrapped()
1111 (r = sshbuf_putb(state->outgoing_packet, in ssh_packet_send2_wrapped()
1115 sshbuf_len(state->outgoing_packet))); in ssh_packet_send2_wrapped()
1119 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1150 if ((r = sshbuf_reserve(state->outgoing_packet, padlen, &cp)) != 0) in ssh_packet_send2_wrapped()
1160 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1161 cp = sshbuf_mutable_ptr(state->outgoing_packet); in ssh_packet_send2_wrapped()
1175 sshbuf_ptr(state->outgoing_packet), len, in ssh_packet_send2_wrapped()
1182 sshbuf_len(state->outgoing_packet) + authlen, &cp)) != 0) in ssh_packet_send2_wrapped()
1185 sshbuf_ptr(state->outgoing_packet), in ssh_packet_send2_wrapped()
1213 sshbuf_reset(state->outgoing_packet); in ssh_packet_send2_wrapped()
1245 if (sshbuf_len(state->outgoing_packet) < 6) in ssh_packet_send2()
1247 type = sshbuf_ptr(state->outgoing_packet)[5]; in ssh_packet_send2()
1249 ssh_packet_need_rekeying(ssh, sshbuf_len(state->outgoing_packet)); in ssh_packet_send2()
1263 p->payload = state->outgoing_packet; in ssh_packet_send2()
1265 state->outgoing_packet = sshbuf_new(); in ssh_packet_send2()
1266 if (state->outgoing_packet == NULL) in ssh_packet_send2()
1304 sshbuf_free(state->outgoing_packet); in ssh_packet_send2()
1305 state->outgoing_packet = p->payload; in ssh_packet_send2()
2481 return sshbuf_put(ssh->state->outgoing_packet, v, len); in sshpkt_put()
2487 return sshbuf_putb(ssh->state->outgoing_packet, b); in sshpkt_putb()
2493 return sshbuf_put_u8(ssh->state->outgoing_packet, val); in sshpkt_put_u8()
2499 return sshbuf_put_u32(ssh->state->outgoing_packet, val); in sshpkt_put_u32()
2505 return sshbuf_put_u64(ssh->state->outgoing_packet, val); in sshpkt_put_u64()
2511 return sshbuf_put_string(ssh->state->outgoing_packet, v, len); in sshpkt_put_string()
2517 return sshbuf_put_cstring(ssh->state->outgoing_packet, v); in sshpkt_put_cstring()
2523 return sshbuf_put_stringb(ssh->state->outgoing_packet, v); in sshpkt_put_stringb()
2537 return sshbuf_put_ec(ssh->state->outgoing_packet, v, g); in sshpkt_put_ec()
2545 return sshbuf_put_bignum2(ssh->state->outgoing_packet, v); in sshpkt_put_bignum2()
2641 sshbuf_reset(ssh->state->outgoing_packet); in sshpkt_start()
2642 return sshbuf_put(ssh->state->outgoing_packet, buf, sizeof(buf)); in sshpkt_start()
2655 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send_mux()
2658 cp = sshbuf_mutable_ptr(state->outgoing_packet); in ssh_packet_send_mux()
2667 state->outgoing_packet)) != 0) in ssh_packet_send_mux()
2671 sshbuf_reset(state->outgoing_packet); in ssh_packet_send_mux()