version 1.5, 2000/05/01 18:41:06 |
version 1.6, 2000/05/03 17:55:21 |
|
|
int |
int |
ssh2_try_passwd(const char *server_user, const char *host, const char *service) |
ssh2_try_passwd(const char *server_user, const char *host, const char *service) |
{ |
{ |
|
static int attempt = 0; |
char prompt[80]; |
char prompt[80]; |
char *password; |
char *password; |
|
|
|
if (attempt++ > options.number_of_password_prompts) |
|
return 0; |
|
|
snprintf(prompt, sizeof(prompt), "%.30s@%.40s's password: ", |
snprintf(prompt, sizeof(prompt), "%.30s@%.40s's password: ", |
server_user, host); |
server_user, host); |