version 1.125, 2001/06/22 23:35:21 |
version 1.126, 2001/06/23 15:12:21 |
|
|
|
|
/* Prints a help message to the user. This function never returns. */ |
/* Prints a help message to the user. This function never returns. */ |
|
|
void |
static void |
usage(void) |
usage(void) |
{ |
{ |
fprintf(stderr, "Usage: %s [options] host [command]\n", __progname); |
fprintf(stderr, "Usage: %s [options] host [command]\n", __progname); |
|
|
* Connects to the given host using rsh (or prints an error message and exits |
* Connects to the given host using rsh (or prints an error message and exits |
* if rsh is not available). This function never returns. |
* if rsh is not available). This function never returns. |
*/ |
*/ |
void |
static void |
rsh_connect(char *host, char *user, Buffer * command) |
rsh_connect(char *host, char *user, Buffer * command) |
{ |
{ |
char *args[10]; |
char *args[10]; |
|
|
exit(1); |
exit(1); |
} |
} |
|
|
int ssh_session(void); |
static int ssh_session(void); |
int ssh_session2(void); |
static int ssh_session2(void); |
void load_public_identity_files(void); |
static void load_public_identity_files(void); |
|
|
/* |
/* |
* Main program for the ssh client. |
* Main program for the ssh client. |
|
|
return exit_status; |
return exit_status; |
} |
} |
|
|
void |
static void |
x11_get_proto(char *proto, int proto_len, char *data, int data_len) |
x11_get_proto(char *proto, int proto_len, char *data, int data_len) |
{ |
{ |
char line[512]; |
char line[512]; |
|
|
} |
} |
} |
} |
|
|
void |
static void |
ssh_init_forwarding(void) |
ssh_init_forwarding(void) |
{ |
{ |
int success = 0; |
int success = 0; |
|
|
} |
} |
} |
} |
|
|
void |
static void |
check_agent_present(void) |
check_agent_present(void) |
{ |
{ |
if (options.forward_agent) { |
if (options.forward_agent) { |
|
|
} |
} |
} |
} |
|
|
int |
static int |
ssh_session(void) |
ssh_session(void) |
{ |
{ |
int type; |
int type; |
|
|
options.escape_char : SSH_ESCAPECHAR_NONE, 0); |
options.escape_char : SSH_ESCAPECHAR_NONE, 0); |
} |
} |
|
|
void |
static void |
client_subsystem_reply(int type, int plen, void *ctxt) |
client_subsystem_reply(int type, int plen, void *ctxt) |
{ |
{ |
int id, len; |
int id, len; |
|
|
len, buffer_ptr(&command), id); |
len, buffer_ptr(&command), id); |
} |
} |
|
|
void |
static void |
ssh_session2_callback(int id, void *arg) |
ssh_session2_callback(int id, void *arg) |
{ |
{ |
int len; |
int len; |
|
|
packet_set_interactive(interactive); |
packet_set_interactive(interactive); |
} |
} |
|
|
int |
static int |
ssh_session2_command(void) |
ssh_session2_command(void) |
{ |
{ |
Channel *c; |
Channel *c; |
|
|
return c->self; |
return c->self; |
} |
} |
|
|
int |
static int |
ssh_session2(void) |
ssh_session2(void) |
{ |
{ |
int id; |
int id; |
|
|
options.escape_char : SSH_ESCAPECHAR_NONE, id); |
options.escape_char : SSH_ESCAPECHAR_NONE, id); |
} |
} |
|
|
void |
static void |
load_public_identity_files(void) |
load_public_identity_files(void) |
{ |
{ |
char *filename; |
char *filename; |