[scard.c]
     In sc_put_key(), sc_reader_id should be id.
This commit is contained in:
Ben Lindstrom 2002-03-22 03:38:35 +00:00
parent eda98a728d
commit 818659a163
2 changed files with 8 additions and 6 deletions

View File

@ -127,7 +127,9 @@
- markus@cvs.openbsd.org 2002/03/21 16:58:13
[clientloop.c]
remove unused
- rees@cvs.openbsd.org 2002/03/21 18:08:15
[scard.c]
In sc_put_key(), sc_reader_id should be id.
20020317
- (tim) [configure.ac] Assume path given with --with-pid-dir=PATH is wanted,
warn if directory does not exist. Put system directories in front of
@ -7973,4 +7975,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.1960 2002/03/22 03:35:48 mouring Exp $
$Id: ChangeLog,v 1.1961 2002/03/22 03:38:35 mouring Exp $

View File

@ -24,7 +24,8 @@
#include "includes.h"
#ifdef SMARTCARD
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>
#include <sectok.h>
@ -413,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);