version 1.188, 2008/02/22 20:44:02 |
version 1.189, 2008/05/08 12:02:23 |
|
|
#include <sys/socket.h> |
#include <sys/socket.h> |
#include <sys/time.h> |
#include <sys/time.h> |
#include <sys/param.h> |
#include <sys/param.h> |
|
#include <sys/queue.h> |
|
|
#include <ctype.h> |
#include <ctype.h> |
#include <errno.h> |
#include <errno.h> |
|
|
cctx->term, &cctx->tio, c->rfd, &cctx->cmd, cctx->env, |
cctx->term, &cctx->tio, c->rfd, &cctx->cmd, cctx->env, |
client_subsystem_reply); |
client_subsystem_reply); |
|
|
c->confirm_ctx = NULL; |
c->open_confirm_ctx = NULL; |
buffer_free(&cctx->cmd); |
buffer_free(&cctx->cmd); |
xfree(cctx->term); |
xfree(cctx->term); |
if (cctx->env != NULL) { |
if (cctx->env != NULL) { |
|
|
debug3("%s: channel_new: %d", __func__, c->self); |
debug3("%s: channel_new: %d", __func__, c->self); |
|
|
channel_send_open(c->self); |
channel_send_open(c->self); |
channel_register_confirm(c->self, client_extra_session2_setup, cctx); |
channel_register_open_confirm(c->self, |
|
client_extra_session2_setup, cctx); |
} |
} |
|
|
static void |
static void |
|
|
dispatch_set(SSH2_MSG_CHANNEL_OPEN_FAILURE, &channel_input_open_failure); |
dispatch_set(SSH2_MSG_CHANNEL_OPEN_FAILURE, &channel_input_open_failure); |
dispatch_set(SSH2_MSG_CHANNEL_REQUEST, &client_input_channel_req); |
dispatch_set(SSH2_MSG_CHANNEL_REQUEST, &client_input_channel_req); |
dispatch_set(SSH2_MSG_CHANNEL_WINDOW_ADJUST, &channel_input_window_adjust); |
dispatch_set(SSH2_MSG_CHANNEL_WINDOW_ADJUST, &channel_input_window_adjust); |
|
dispatch_set(SSH2_MSG_CHANNEL_SUCCESS, &channel_input_status_confirm); |
|
dispatch_set(SSH2_MSG_CHANNEL_FAILURE, &channel_input_status_confirm); |
dispatch_set(SSH2_MSG_GLOBAL_REQUEST, &client_input_global_request); |
dispatch_set(SSH2_MSG_GLOBAL_REQUEST, &client_input_global_request); |
|
|
/* rekeying */ |
/* rekeying */ |