diff options
author | 2001-07-04 23:39:07 +0000 | |
---|---|---|
committer | 2001-07-04 23:39:07 +0000 | |
commit | a0a92cd6d2b84a6c0b99faa35be9bd658015a8ca (patch) | |
tree | c846f19079f33346bf007acebbff34696567b23c /usr.bin/ssh/ssh-agent.c | |
parent | sync (diff) | |
download | wireguard-openbsd-a0a92cd6d2b84a6c0b99faa35be9bd658015a8ca.tar.xz wireguard-openbsd-a0a92cd6d2b84a6c0b99faa35be9bd658015a8ca.zip |
for smartcards remove both RSA1/2 keys
Diffstat (limited to 'usr.bin/ssh/ssh-agent.c')
-rw-r--r-- | usr.bin/ssh/ssh-agent.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c index 7f3325f63e3..f0089899b51 100644 --- a/usr.bin/ssh/ssh-agent.c +++ b/usr.bin/ssh/ssh-agent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-agent.c,v 1.62 2001/07/04 23:13:10 markus Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.63 2001/07/04 23:39:07 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -36,7 +36,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-agent.c,v 1.62 2001/07/04 23:13:10 markus Exp $"); +RCSID("$OpenBSD: ssh-agent.c,v 1.63 2001/07/04 23:39:07 markus Exp $"); #include <openssl/evp.h> #include <openssl/md5.h> @@ -511,6 +511,7 @@ process_remove_smartcard_key(SocketEntry *e) if ((k = sc_get_key(sc_reader_num)) == NULL) { error("sc_get_pubkey failed"); } else { + k->type = KEY_RSA1; private = lookup_private_key(k, &idx, 1); if (private != NULL) { Idtab *tab = idtab_lookup(1); @@ -521,6 +522,7 @@ process_remove_smartcard_key(SocketEntry *e) tab->nentries--; success = 1; } + k->type = KEY_RSA; private = lookup_private_key(k, &idx, 2); if (private != NULL) { Idtab *tab = idtab_lookup(2); @@ -532,7 +534,6 @@ process_remove_smartcard_key(SocketEntry *e) success = 1; } key_free(k); - sc_close(); } buffer_put_int(&e->output, 1); |