summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/scard.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/scard.c')
-rw-r--r--crypto/openssh/scard.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/crypto/openssh/scard.c b/crypto/openssh/scard.c
index 9791938..906287b 100644
--- a/crypto/openssh/scard.c
+++ b/crypto/openssh/scard.c
@@ -24,7 +24,7 @@
#include "includes.h"
#if defined(SMARTCARD) && defined(USE_SECTOK)
-RCSID("$OpenBSD: scard.c,v 1.26 2002/06/23 03:30:17 deraadt Exp $");
+RCSID("$OpenBSD: scard.c,v 1.28 2003/06/12 19:12:02 markus Exp $");
#include <openssl/evp.h>
#include <sectok.h>
@@ -526,7 +526,7 @@ sc_put_key(Key *prv, const char *id)
}
if (!sectok_swOK(sw))
goto done;
- log("cyberflex_load_rsa_priv done");
+ logit("cyberflex_load_rsa_priv done");
key_fid[0] = 0x73;
key_fid[1] = 0x68;
if (cyberflex_load_rsa_pub(fd, cla, key_fid, len, elements[5],
@@ -536,7 +536,7 @@ sc_put_key(Key *prv, const char *id)
}
if (!sectok_swOK(sw))
goto done;
- log("cyberflex_load_rsa_pub done");
+ logit("cyberflex_load_rsa_pub done");
status = 0;
done:
@@ -554,4 +554,11 @@ done:
sectok_close(fd);
return (status);
}
+
+char *
+sc_get_key_label(Key *key)
+{
+ return xstrdup("smartcard key");
+}
+
#endif /* SMARTCARD && USE_SECTOK */
OpenPOWER on IntegriCloud