diff options
author | Jim Rees <rees@cvs.openbsd.org> | 2002-03-21 18:08:16 +0000 |
---|---|---|
committer | Jim Rees <rees@cvs.openbsd.org> | 2002-03-21 18:08:16 +0000 |
commit | 1e60cb4c9855dffd48ec913afe51b726ae9f91bd (patch) | |
tree | e27c07f8f85bfcb14efc521d22144b79a1df4f2e /usr.bin/ssh | |
parent | f1d01d50403065899b15b4d326b3007e9b140d56 (diff) |
In sc_put_key(), sc_reader_id should be id.
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/scard.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ssh/scard.c b/usr.bin/ssh/scard.c index 28b262580ec..28e95a81d6a 100644 --- a/usr.bin/ssh/scard.c +++ b/usr.bin/ssh/scard.c @@ -24,7 +24,7 @@ #ifdef SMARTCARD #include "includes.h" -RCSID("$OpenBSD: scard.c,v 1.20 2002/03/21 16:57:15 markus Exp $"); +RCSID("$OpenBSD: scard.c,v 1.21 2002/03/21 18:08:15 rees Exp $"); #include <openssl/engine.h> #include <openssl/evp.h> @@ -414,14 +414,13 @@ sc_put_key(Key *prv, const char *id) COPY_RSA_KEY(dmp1, 4); COPY_RSA_KEY(n, 5); len = BN_num_bytes(prv->rsa->n); - fd = sectok_friendly_open(sc_reader_id, STONOWAIT, &sw); + fd = sectok_friendly_open(id, STONOWAIT, &sw); if (fd < 0) { error("sectok_open failed: %s", sectok_get_sw(sw)); goto done; } if (! sectok_cardpresent(fd)) { - error("smartcard in reader %s not present", - sc_reader_id); + error("smartcard in reader %s not present", id); goto done; } ret = sectok_reset(fd, 0, NULL, &sw); |