libopensc: remove unused variables
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4063 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
9485f168ee
commit
975d703c0d
|
@ -1886,7 +1886,6 @@ static int
|
||||||
auth_pin_reset(struct sc_card *card, unsigned int type,
|
auth_pin_reset(struct sc_card *card, unsigned int type,
|
||||||
struct sc_pin_cmd_data *data, int *tries_left)
|
struct sc_pin_cmd_data *data, int *tries_left)
|
||||||
{
|
{
|
||||||
struct sc_card_driver *iso_drv = sc_get_iso7816_driver();
|
|
||||||
int rv;
|
int rv;
|
||||||
|
|
||||||
SC_FUNC_CALLED(card->ctx, 1);
|
SC_FUNC_CALLED(card->ctx, 1);
|
||||||
|
@ -1902,10 +1901,7 @@ auth_pin_reset(struct sc_card *card, unsigned int type,
|
||||||
static int
|
static int
|
||||||
auth_pin_cmd(struct sc_card *card, struct sc_pin_cmd_data *data, int *tries_left)
|
auth_pin_cmd(struct sc_card *card, struct sc_pin_cmd_data *data, int *tries_left)
|
||||||
{
|
{
|
||||||
struct sc_card_driver *iso_drv = sc_get_iso7816_driver();
|
int rv;
|
||||||
struct auth_private_data *prv_data = (struct auth_private_data *) card->drv_data;
|
|
||||||
struct sc_apdu apdu;
|
|
||||||
int rv, _tries_left = 0;
|
|
||||||
|
|
||||||
SC_FUNC_CALLED(card->ctx, 1);
|
SC_FUNC_CALLED(card->ctx, 1);
|
||||||
if (data->pin_type != SC_AC_CHV)
|
if (data->pin_type != SC_AC_CHV)
|
||||||
|
|
|
@ -511,7 +511,6 @@ int sc_pkcs15_pincache_revalidate(struct sc_pkcs15_card *p15card, sc_pkcs15_obje
|
||||||
{
|
{
|
||||||
struct sc_context *ctx = p15card->card->ctx;
|
struct sc_context *ctx = p15card->card->ctx;
|
||||||
sc_pkcs15_object_t *pin_obj;
|
sc_pkcs15_object_t *pin_obj;
|
||||||
sc_pkcs15_pin_info_t *pin_info;
|
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
SC_FUNC_CALLED(ctx, 2);
|
SC_FUNC_CALLED(ctx, 2);
|
||||||
|
@ -542,7 +541,8 @@ int sc_pkcs15_pincache_revalidate(struct sc_pkcs15_card *p15card, sc_pkcs15_obje
|
||||||
* before or after (successeful ?) PIN verifying ? */
|
* before or after (successeful ?) PIN verifying ? */
|
||||||
pin_obj->usage_counter++;
|
pin_obj->usage_counter++;
|
||||||
|
|
||||||
r = sc_pkcs15_verify_pin(p15card, pin_info, pin_obj->content.value, pin_obj->content.len);
|
r = sc_pkcs15_verify_pin(p15card, (struct sc_pkcs15_pin_info *)pin_obj->data,
|
||||||
|
pin_obj->content.value, pin_obj->content.len);
|
||||||
if (r != SC_SUCCESS) {
|
if (r != SC_SUCCESS) {
|
||||||
sc_debug(ctx, "Verify PIN error %i", r);
|
sc_debug(ctx, "Verify PIN error %i", r);
|
||||||
return SC_ERROR_SECURITY_STATUS_NOT_SATISFIED;
|
return SC_ERROR_SECURITY_STATUS_NOT_SATISFIED;
|
||||||
|
|
|
@ -1164,7 +1164,6 @@ int sc_pkcs15_find_pin_by_type_and_reference(struct sc_pkcs15_card *p15card,
|
||||||
struct sc_pkcs15_object **out)
|
struct sc_pkcs15_object **out)
|
||||||
{
|
{
|
||||||
struct sc_context *ctx = p15card->card->ctx;
|
struct sc_context *ctx = p15card->card->ctx;
|
||||||
struct sc_pkcs15_pin_info pinfo;
|
|
||||||
struct sc_pkcs15_object *auth_objs[0x10];
|
struct sc_pkcs15_object *auth_objs[0x10];
|
||||||
int r, nn_objs, ii;
|
int r, nn_objs, ii;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue