version 1.119, 2002/01/21 15:13:51 |
version 1.120, 2002/05/23 19:24:30 |
|
|
* This function does not require super-user privileges. |
* This function does not require super-user privileges. |
*/ |
*/ |
void |
void |
ssh_login(Key **keys, int nkeys, const char *orighost, |
ssh_login(Sensitive *sensitive, const char *orighost, |
struct sockaddr *hostaddr, struct passwd *pw) |
struct sockaddr *hostaddr, struct passwd *pw) |
{ |
{ |
char *host, *cp; |
char *host, *cp; |
|
|
/* authenticate user */ |
/* authenticate user */ |
if (compat20) { |
if (compat20) { |
ssh_kex2(host, hostaddr); |
ssh_kex2(host, hostaddr); |
ssh_userauth2(local_user, server_user, host, keys, nkeys); |
ssh_userauth2(local_user, server_user, host, sensitive); |
} else { |
} else { |
ssh_kex(host, hostaddr); |
ssh_kex(host, hostaddr); |
ssh_userauth1(local_user, server_user, host, keys, nkeys); |
ssh_userauth1(local_user, server_user, host, sensitive); |
} |
} |
} |
} |
|
|