Displaying 4 results from an estimated 4 matches for "sc_get_key".
Did you mean:
sl_get_key
2003 Jun 05
3
[Bug 589] scard-opensc.c: load only those keys for which there's a private key
...Portable OpenSSH
Version: -current
Platform: All
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: Smartcard
AssignedTo: openssh-bugs at mindrot.org
ReportedBy: larsch at trustcenter.de
sc_get_keys loads the public keys from every certificate stored
on the smartcard. Therefore public keys of CA certificate (or other
certs for which there's no corresponding private key on the smartcard)
are loaded into the ssh-agent. This has (at least) two drawbacks:
a) loading certificates from a smartc...
2006 May 04
2
xmalloc(foo*bar) -> xcalloc(foo, bar) for Portable
...==================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/scard-opensc.c,v
retrieving revision 1.15
diff -u -p -r1.15 scard-opensc.c
--- scard-opensc.c 13 May 2004 07:29:35 -0000 1.15
+++ scard-opensc.c 4 May 2006 01:58:41 -0000
@@ -455,7 +455,7 @@ sc_get_keys(const char *id, const char *
}
key_count = r;
}
- keys = xmalloc(sizeof(Key *) * (key_count*2+1));
+ keys = xcalloc(key_count * 2 + 1, sizeof(Key *));
for (i = 0; i < key_count; i++) {
sc_pkcs15_object_t *tmp_obj = NULL;
cert_id = ((sc_pkcs15_cert_info_t *)(certs[i]->data))-&...
2002 Oct 17
2
playing with smartcard: rsa key upload?
I began playing with smartcard support and enabled this in openssh-3.5p1
on linux.
The -U (upload) option unfortunately doesn't work yet with ssh-keygen:
$ ssh-keygen -U 0
Enter file in which the key is (/home/user/.ssh/id_rsa):
key uploading not yet supported
Is there a tool to upload an openssh rsa key to a smart card so that I can
use it with ssh -I later on? Should I just upload it as a
2005 Jul 26
1
Linux in-kernel keys support
...id)
{
char *filename;
- int i = 0;
+ int i = 0, count;
Key *public;
+#ifdef HAVE_LIBKEYUTIL
+ key_serial_t *keylist;
+#endif
#ifdef SMARTCARD
Key **keys;
if (options.smartcard_device != NULL &&
options.num_identity_files < SSH_MAX_IDENTITY_FILES &&
(keys = sc_get_keys(options.smartcard_device, NULL)) != NULL ) {
- int count = 0;
+ count = 0;
for (i = 0; keys[i] != NULL; i++) {
count++;
memmove(&options.identity_files[1], &options.identity_files[0],
@@ -1246,6 +1253,95 @@
options.identity_files[i] = filename;
options.identity_keys[i] =...