Home | History | Annotate | Download | only in dropbear

Lines Matching refs:Channel

31 #include "channel.h"
37 static void cli_closechansess(struct Channel *channel);
38 static int cli_initchansess(struct Channel *channel);
39 static void cli_chansessreq(struct Channel *channel);
41 static void start_channel_request(struct Channel *channel, unsigned char *type);
43 static void send_chansess_pty_req(struct Channel *channel);
44 static void send_chansess_shell_req(struct Channel *channel);
57 static void cli_chansessreq(struct Channel *channel) {
74 send_msg_channel_failure(channel);
84 static void cli_closechansess(struct Channel *UNUSED(channel)) {
86 /* This channel hasn't gone yet, so we have > 1 */
95 static void start_channel_request(struct Channel *channel,
100 buf_putint(ses.writepayload, channel->remotechan);
267 struct Channel *channel = NULL;
270 channel = ses.channels[i];
271 if (channel != NULL && channel->type == &clichansess) {
274 buf_putint(ses.writepayload, channel->remotechan);
284 static void send_chansess_pty_req(struct Channel *channel) {
290 start_channel_request(channel, "pty-req");
317 static void send_chansess_shell_req(struct Channel *channel) {
329 start_channel_request(channel, reqtype);
341 static int cli_initchansess(struct Channel *channel) {
344 channel->writefd = STDOUT_FILENO;
347 channel->readfd = STDIN_FILENO;
350 channel->errfd = STDERR_FILENO;
353 channel->extrabuf = cbuf_new(RECV_MAXWINDOW);
356 send_chansess_pty_req(channel);
359 send_chansess_shell_req(channel);
374 dropbear_exit("Couldn't open initial channel");
377 /* No special channel request data */