version 1.108, 2001/06/23 02:34:31 |
version 1.109, 2001/06/23 15:12:21 |
|
|
/* |
/* |
* Connect to the given ssh server using a proxy command. |
* Connect to the given ssh server using a proxy command. |
*/ |
*/ |
int |
static int |
ssh_proxy_connect(const char *host, u_short port, struct passwd *pw, |
ssh_proxy_connect(const char *host, u_short port, struct passwd *pw, |
const char *proxy_command) |
const char *proxy_command) |
{ |
{ |
|
|
/* |
/* |
* Creates a (possibly privileged) socket for use as the ssh connection. |
* Creates a (possibly privileged) socket for use as the ssh connection. |
*/ |
*/ |
int |
static int |
ssh_create_socket(struct passwd *pw, int privileged, int family) |
ssh_create_socket(struct passwd *pw, int privileged, int family) |
{ |
{ |
int sock, gaierr; |
int sock, gaierr; |
|
|
* Waits for the server identification string, and sends our own |
* Waits for the server identification string, and sends our own |
* identification string. |
* identification string. |
*/ |
*/ |
void |
static void |
ssh_exchange_identification(void) |
ssh_exchange_identification(void) |
{ |
{ |
char buf[256], remote_version[256]; /* must be same size! */ |
char buf[256], remote_version[256]; /* must be same size! */ |
|
|
} |
} |
|
|
/* defaults to 'no' */ |
/* defaults to 'no' */ |
int |
static int |
read_yes_or_no(const char *prompt, int defval) |
read_yes_or_no(const char *prompt, int defval) |
{ |
{ |
char buf[1024]; |
char buf[1024]; |
|
|
* is not valid. the user_hostfile will not be updated if 'readonly' is true. |
* is not valid. the user_hostfile will not be updated if 'readonly' is true. |
*/ |
*/ |
|
|
int |
static int |
check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key, |
check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key, |
int readonly, const char *user_hostfile, const char *system_hostfile) |
int readonly, const char *user_hostfile, const char *system_hostfile) |
{ |
{ |