From f3512d9ba7e7ee92493cf394610c2ca047a0f637 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 14 Jul 2001 12:14:27 +1000 Subject: - OpenBSD CVS Sync - markus@cvs.openbsd.org 2001/07/04 23:49:27 [ssh-agent.c] handle mutiple adds of the same smartcard key --- ssh-agent.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ssh-agent.c') diff --git a/ssh-agent.c b/ssh-agent.c index 044710a43..47cc265c2 100644 --- a/ssh-agent.c +++ b/ssh-agent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-agent.c,v 1.63 2001/07/04 23:39:07 markus Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.64 2001/07/04 23:49:27 markus Exp $ */ /* * Author: Tatu Ylonen @@ -36,7 +36,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-agent.c,v 1.63 2001/07/04 23:39:07 markus Exp $"); +RCSID("$OpenBSD: ssh-agent.c,v 1.64 2001/07/04 23:49:27 markus Exp $"); #include #include @@ -464,6 +464,7 @@ process_add_smartcard_key (SocketEntry *e) success = 1; tab = idtab_lookup(1); + k->type = KEY_RSA1; if (lookup_private_key(k, NULL, 1) == NULL) { if (tab->nentries == 0) tab->identities = xmalloc(sizeof(Identity)); @@ -479,6 +480,7 @@ process_add_smartcard_key (SocketEntry *e) xstrdup("rsa1 smartcard"); tab->nentries++; } + k->type = KEY_RSA; tab = idtab_lookup(2); if (lookup_private_key(k, NULL, 2) == NULL) { if (tab->nentries == 0) -- cgit v1.2.3