search for: add_default_identities

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

2001 Jul 29
1
add version 2 identities by default, too
...source included with my Debian package of OpenSSH: walters at space-ghost:/usr/src/ssh/openssh-2.9p2$ diff -u ssh-add.c~ ssh-add.c --- ssh-add.c~ Thu Apr 19 16:33:08 2001 +++ ssh-add.c Sat Jul 28 23:49:01 2001 @@ -182,12 +182,63 @@ printf("The agent has no identities.\n"); } +void +add_default_identities(AuthenticationConnection *ac, int deleting) +{ + char identity_name[1024]; + char dsa_name[1024]; + char rsa_name[1024]; + struct passwd *pw = getpwuid(getuid()); + snprintf(identity_name, sizeof identity_name, "%s/%s", pw->pw_dir, _PATH_SSH_CLIENT_IDENTITY); + snprintf(rsa_name, sizeo...