summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-agent.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-07-04 23:49:27 +0000
committermarkus <markus@openbsd.org>2001-07-04 23:49:27 +0000
commit6faf0a138bf3fb4c29f7b52630ead302e34dc90e (patch)
treef13166799f5d52675de888663c090f5548e27b27 /usr.bin/ssh/ssh-agent.c
parentcleaner (diff)
downloadwireguard-openbsd-6faf0a138bf3fb4c29f7b52630ead302e34dc90e.tar.xz
wireguard-openbsd-6faf0a138bf3fb4c29f7b52630ead302e34dc90e.zip
handle mutiple adds of the same smartcard key
Diffstat (limited to 'usr.bin/ssh/ssh-agent.c')
-rw-r--r--usr.bin/ssh/ssh-agent.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c
index f0089899b51..db5cb786059 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.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 <ylo@cs.hut.fi>
@@ -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 <openssl/evp.h>
#include <openssl/md5.h>
@@ -460,6 +460,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));
@@ -475,6 +476,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)