version 1.406, 2014/07/15 15:54:14 |
version 1.407, 2014/07/17 07:22:19 |
|
|
} |
} |
|
|
static void |
static void |
|
ssh_stdio_confirm(int id, int success, void *arg) |
|
{ |
|
if (!success) |
|
fatal("stdio forwarding failed"); |
|
} |
|
|
|
static void |
ssh_init_stdio_forwarding(void) |
ssh_init_stdio_forwarding(void) |
{ |
{ |
Channel *c; |
Channel *c; |
|
|
stdio_forward_port, in, out)) == NULL) |
stdio_forward_port, in, out)) == NULL) |
fatal("%s: channel_connect_stdio_fwd failed", __func__); |
fatal("%s: channel_connect_stdio_fwd failed", __func__); |
channel_register_cleanup(c->self, client_cleanup_stdio_fwd, 0); |
channel_register_cleanup(c->self, client_cleanup_stdio_fwd, 0); |
|
channel_register_open_confirm(c->self, ssh_stdio_confirm, NULL); |
} |
} |
|
|
static void |
static void |