Fix minor compiler warnings
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@320 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
f3b7c99e1a
commit
04e929da00
|
@ -404,7 +404,7 @@ static int cflex_store_rsa_key(struct sc_profile *profile, struct sc_card *card,
|
|||
sc_file_clear_acl_entries(tmpfile, SC_AC_OP_READ);
|
||||
sc_file_add_acl_entry(tmpfile, SC_AC_OP_READ, SC_AC_NONE, SC_AC_KEY_REF_NONE);
|
||||
tmpfile->path.len -= 2;
|
||||
sc_append_path_id(&tmpfile->path, "\x10\x12", 2);
|
||||
sc_append_path_id(&tmpfile->path, (const u8 *) "\x10\x12", 2);
|
||||
tmpfile->id = 0x1012;
|
||||
tmpfile->size = pubsize;
|
||||
printf("Updating RSA public key...\n");
|
||||
|
|
|
@ -1432,7 +1432,7 @@ do_verify_pin(struct sc_profile *pro, unsigned int type, unsigned int reference)
|
|||
assert(pro->pin_maxlen < sizeof(pinbuf));
|
||||
memset(pinbuf, pro->pin_pad_char, pro->pin_maxlen);
|
||||
/* FIXME: shouldn't assume that encoding is ascii-numeric */
|
||||
strncpy(pinbuf, pin, strlen(pin));
|
||||
strncpy((char *) pinbuf, pin, strlen(pin));
|
||||
|
||||
return sc_verify(card, SC_AC_CHV, reference,
|
||||
pinbuf, pro->pin_maxlen, NULL);
|
||||
|
|
Loading…
Reference in New Issue