search for: last_passphrase

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

2001 Jan 07
1
[PATCH] Caching passphrase in ssh-add.
...ssh-add.c =================================================================== RCS file: /cvs/openssh_cvs/ssh-add.c,v retrieving revision 1.28 diff -u -r1.28 ssh-add.c --- ssh-add.c 2000/11/17 03:47:21 1.28 +++ ssh-add.c 2001/01/07 21:52:10 @@ -54,6 +54,8 @@ char *__progname; #endif +static char *last_passphrase = NULL; + void delete_file(AuthenticationConnection *ac, const char *filename) { @@ -172,6 +174,10 @@ /* At first, try empty passphrase */ private = key_new(type); success = load_private_key(filename, "", private, &comment); + if (!success && last_passphrase) { + /*...