search for: identity_found

Displaying 1 result from an estimated 1 matches for "identity_found".

2001 Jul 29
1
add version 2 identities by default, too
...w_dir, _PATH_SSH_CLIENT_ID_RSA); + snprintf(dsa_name, sizeof dsa_name, "%s/%s", pw->pw_dir, _PATH_SSH_CLIENT_ID_DSA); + if (!pw) { + fprintf(stderr, "No user found with uid %u\n", + (u_int)getuid()); + ssh_close_authentication_connection(ac); + exit(1); + } else { + int identity_found = !access(identity_name, R_OK); + int rsa_found = !access(rsa_name, R_OK); + int dsa_found = !access(dsa_name, R_OK); + + if (!(identity_found || rsa_found || dsa_found)) { + fprintf(stderr, + "No files specified, and unable to find one of:\n%s\n%s\n%s\n", + + identity_name...