- nino@cvs.openbsd.org 2003/06/12 15:34:09
[scp.c]
Typo. Ok markus@.
+ - markus@cvs.openbsd.org 2003/06/12 19:12:03
+ [scard.c scard.h ssh-agent.c ssh.c]
+ add sc_get_key_label; larsch at trustcenter.de; bugzilla#591
20030614
- (djm) Update license on fake-rfc2553.[ch]; ok itojun@
#include "includes.h"
#if defined(SMARTCARD) && defined(USE_SECTOK)
-RCSID("$OpenBSD: scard.c,v 1.27 2003/04/08 20:21:29 itojun Exp $");
+RCSID("$OpenBSD: scard.c,v 1.28 2003/06/12 19:12:02 markus Exp $");
#include <openssl/evp.h>
#include <sectok.h>
sectok_close(fd);
return (status);
}
+
+char *
+sc_get_key_label(Key *key)
+{
+ return xstrdup("smartcard key");
+}
+
#endif /* SMARTCARD && USE_SECTOK */
-/* $OpenBSD: scard.h,v 1.11 2002/06/30 21:59:45 deraadt Exp $ */
+/* $OpenBSD: scard.h,v 1.12 2003/06/12 19:12:03 markus Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
Key **sc_get_keys(const char *, const char *);
void sc_close(void);
int sc_put_key(Key *, const char *);
+char *sc_get_key_label(Key *);
#endif
#include "includes.h"
#include "openbsd-compat/sys-queue.h"
-RCSID("$OpenBSD: ssh-agent.c,v 1.110 2003/06/11 11:18:38 djm Exp $");
+RCSID("$OpenBSD: ssh-agent.c,v 1.111 2003/06/12 19:12:03 markus Exp $");
#include <openssl/evp.h>
#include <openssl/md5.h>
if (lookup_identity(k, version) == NULL) {
id = xmalloc(sizeof(Identity));
id->key = k;
- id->comment = xstrdup("smartcard key");
+ id->comment = sc_get_key_label(k);
id->death = death;
id->confirm = confirm;
TAILQ_INSERT_TAIL(&tab->idlist, id, next);
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh.c,v 1.193 2003/05/15 13:52:10 djm Exp $");
+RCSID("$OpenBSD: ssh.c,v 1.194 2003/06/12 19:12:03 markus Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
sizeof(Key *) * (SSH_MAX_IDENTITY_FILES - 1));
options.num_identity_files++;
options.identity_keys[0] = keys[i];
- options.identity_files[0] = xstrdup("smartcard key");;
+ options.identity_files[0] = sc_get_key_label(keys[i]);
}
if (options.num_identity_files > SSH_MAX_IDENTITY_FILES)
options.num_identity_files = SSH_MAX_IDENTITY_FILES;