Lines Matching defs:output
517 (c->output = sshbuf_new()) == NULL ||
776 sshbuf_free(c->output);
778 c->input = c->output = c->extended = NULL;
884 if (sshbuf_len(c->output) > maxsize) {
885 debug2("channel %d: big output buffer %zu > %u",
886 c->self, sshbuf_len(c->output), maxsize);
1024 c->ostate, sshbuf_len(c->output),
1290 if (sshbuf_len(c->output) > 0) {
1404 sshbuf_reset(c->output);
1421 int ret = x11_open_helper(ssh, c->output);
1449 /* Start output drain. XXX just kill chan? */
1454 if (sshbuf_len(c->output) > 0)
1463 channel_decode_socks4(Channel *c, struct sshbuf *input, struct sshbuf *output)
1567 if ((r = sshbuf_put(output, &s4_rsp, sizeof(s4_rsp))) != 0)
1582 channel_decode_socks5(Channel *c, struct sshbuf *input, struct sshbuf *output)
1624 if ((r = sshbuf_put_u8(output, 0x05)) != 0 ||
1625 (r = sshbuf_put_u8(output, SSH_SOCKS5_NOAUTH)) != 0)
1701 if ((r = sshbuf_put(output, &s5_rsp, sizeof(s5_rsp))) != 0 ||
1702 (r = sshbuf_put_u32(output, ntohl(INADDR_ANY))) != 0 ||
1703 (r = sshbuf_put(output, &dest_port, sizeof(dest_port))) != 0)
1756 ret = channel_decode_socks4(c, c->input, c->output);
1759 ret = channel_decode_socks5(c, c->input, c->output);
1771 if (sshbuf_len(c->output))
1796 have = sshbuf_len(c->output);
1798 /* sshbuf_dump(c->output, stderr); */
1801 if ((r = sshbuf_consume(c->output, have)) != 0)
1810 p = sshbuf_ptr(c->output);
1813 /* switch input/output for reverse forwarding */
1814 ret = channel_decode_socks4(c, c->output, c->input);
1817 ret = channel_decode_socks5(c, c->output, c->input);
2202 if (sshbuf_len(c->output) == 0)
2205 /* Send buffered output data to the socket. */
2206 olen = sshbuf_len(c->output);
2217 if ((r = sshbuf_get_string(c->output, &data, &dlen)) != 0)
2221 buf = data = sshbuf_mutable_ptr(c->output);
2222 dlen = sshbuf_len(c->output);
2265 if ((r = sshbuf_consume(c->output, len)) != 0)
2268 c->local_consumed += olen - sshbuf_len(c->output);
2461 if (sshbuf_len(c->output) == 0)
2464 len = write(c->wfd, sshbuf_ptr(c->output), sshbuf_len(c->output));
2471 if ((r = sshbuf_consume(c->output, len)) != 0)
3338 (r = sshbuf_put_stringb(downstream->output, b)) != 0) {
3460 if ((r = sshbuf_put_string(c->output, data, data_len)) != 0)
3462 } else if ((r = sshbuf_put(c->output, data, data_len)) != 0)