version 1.99, 2002/03/21 23:07:37 |
version 1.99.2.3, 2002/06/26 15:30:38 |
|
|
int local = 0; |
int local = 0; |
|
|
leave_raw_mode(); |
leave_raw_mode(); |
handler = signal(SIGINT, SIG_IGN); |
handler = signal(SIGINT, SIG_IGN); |
cmd = s = read_passphrase("\r\nssh> ", RP_ECHO); |
cmd = s = read_passphrase("\r\nssh> ", RP_ECHO); |
if (s == NULL) |
if (s == NULL) |
goto out; |
goto out; |
|
|
{ |
{ |
Channel *c = NULL; |
Channel *c = NULL; |
char *ctype; |
char *ctype; |
u_int len; |
|
int rchan; |
int rchan; |
int rmaxpack; |
u_int rmaxpack, rwindow, len; |
int rwindow; |
|
|
|
ctype = packet_get_string(&len); |
ctype = packet_get_string(&len); |
rchan = packet_get_int(); |
rchan = packet_get_int(); |
|
|
client_init_dispatch_20(void) |
client_init_dispatch_20(void) |
{ |
{ |
dispatch_init(&dispatch_protocol_error); |
dispatch_init(&dispatch_protocol_error); |
|
|
dispatch_set(SSH2_MSG_CHANNEL_CLOSE, &channel_input_oclose); |
dispatch_set(SSH2_MSG_CHANNEL_CLOSE, &channel_input_oclose); |
dispatch_set(SSH2_MSG_CHANNEL_DATA, &channel_input_data); |
dispatch_set(SSH2_MSG_CHANNEL_DATA, &channel_input_data); |
dispatch_set(SSH2_MSG_CHANNEL_EOF, &channel_input_ieof); |
dispatch_set(SSH2_MSG_CHANNEL_EOF, &channel_input_ieof); |
|
|
|
|
/* rekeying */ |
/* rekeying */ |
dispatch_set(SSH2_MSG_KEXINIT, &kex_input_kexinit); |
dispatch_set(SSH2_MSG_KEXINIT, &kex_input_kexinit); |
|
|
|
/* global request reply messages */ |
|
dispatch_set(SSH2_MSG_REQUEST_FAILURE, &client_global_request_reply); |
|
dispatch_set(SSH2_MSG_REQUEST_SUCCESS, &client_global_request_reply); |
} |
} |
static void |
static void |
client_init_dispatch_13(void) |
client_init_dispatch_13(void) |