version 1.24, 2001/01/13 18:14:13 |
version 1.25, 2001/01/19 15:55:11 |
|
|
#include "key.h" |
#include "key.h" |
#include "authfd.h" |
#include "authfd.h" |
#include "authfile.h" |
#include "authfile.h" |
|
#include "pathnames.h" |
|
|
void |
void |
delete_file(AuthenticationConnection *ac, const char *filename) |
delete_file(AuthenticationConnection *ac, const char *filename) |
|
|
if (getenv(SSH_ASKPASS_ENV)) |
if (getenv(SSH_ASKPASS_ENV)) |
askpass = getenv(SSH_ASKPASS_ENV); |
askpass = getenv(SSH_ASKPASS_ENV); |
else |
else |
askpass = SSH_ASKPASS_DEFAULT; |
askpass = _PATH_SSH_ASKPASS_DEFAULT; |
} |
} |
|
|
/* At first, try empty passphrase */ |
/* At first, try empty passphrase */ |
|
|
ssh_close_authentication_connection(ac); |
ssh_close_authentication_connection(ac); |
exit(1); |
exit(1); |
} |
} |
snprintf(buf, sizeof buf, "%s/%s", pw->pw_dir, SSH_CLIENT_IDENTITY); |
snprintf(buf, sizeof buf, "%s/%s", pw->pw_dir, _PATH_SSH_CLIENT_IDENTITY); |
if (deleting) |
if (deleting) |
delete_file(ac, buf); |
delete_file(ac, buf); |
else |
else |