pkcs15init: unused variables

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3974 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
viktor.tarasov 2010-02-02 09:33:29 +00:00
parent ac9f672189
commit 976c214a05
4 changed files with 3 additions and 9 deletions

View File

@ -946,7 +946,7 @@ sc_pkcs15init_store_puk(struct sc_pkcs15_card *p15card,
struct sc_context *ctx = p15card->card->ctx;
struct sc_pkcs15_object *pin_obj;
struct sc_pkcs15_pin_info *pin_info;
int r, idx;
int r;
char puk_label[0x30];
SC_FUNC_CALLED(ctx, 3);
@ -2727,7 +2727,6 @@ sc_pkcs15init_add_object(struct sc_pkcs15_card *p15card,
{
struct sc_context *ctx = p15card->card->ctx;
struct sc_pkcs15_df *df;
struct sc_card *card = p15card->card;
struct sc_file *file = NULL;
int is_new = 0, r = 0;

View File

@ -198,7 +198,6 @@ miocos_create_key(struct sc_profile *profile, struct sc_card *card,
struct sc_context *ctx = card->ctx;
struct sc_pkcs15_prkey_info *key_info = (struct sc_pkcs15_prkey_info *)object->data;
struct sc_file *file;
struct sc_pkcs15_prkey_rsa *rsa;
int r;
SC_FUNC_CALLED(ctx, 1);

View File

@ -310,7 +310,7 @@ cosm_create_reference_data(struct sc_profile *profile, struct sc_card *card,
struct sc_pkcs15_pin_info profile_puk;
struct sc_cardctl_oberthur_createpin_info args;
unsigned char *puk_buff = NULL;
int rv, puk_buff_len = 0;
int rv;
unsigned char oberthur_puk[16] = {
0x6F, 0x47, 0xD9, 0x88, 0x4B, 0x6F, 0x9D, 0xC5,
0x78, 0x33, 0x79, 0x8F, 0x5B, 0x7D, 0xE1, 0xA5
@ -378,7 +378,7 @@ cosm_update_pin(struct sc_profile *profile, struct sc_card *card,
struct sc_pkcs15_pin_info *pinfo, const unsigned char *pin, size_t pin_len,
const unsigned char *puk, size_t puk_len )
{
int rv, tries_left = -1;
int rv;
SC_FUNC_CALLED(card->ctx, 1);
sc_debug(card->ctx, "ref %i; flags 0x%X\n", pinfo->reference, pinfo->flags);
@ -625,7 +625,6 @@ cosm_generate_key(struct sc_profile *profile, struct sc_card *card,
{
struct sc_context *ctx = card->ctx;
struct sc_pkcs15_prkey_info *key_info = (struct sc_pkcs15_prkey_info *)object->data;
struct sc_file *file = NULL;
struct sc_cardctl_oberthur_genkey_info args;
struct sc_file *prkf = NULL, *tmpf = NULL;
struct sc_path path;

View File

@ -112,7 +112,6 @@ setcos_init_card(sc_profile_t *profile, sc_card_t *card)
struct sc_context *ctx = card->ctx;
sc_file_t *mf = profile->mf_info->file;
sc_file_t *pinfile;
int pin_ref;
int r;
SC_FUNC_CALLED(ctx, 1);
@ -392,7 +391,6 @@ setcos_store_key(struct sc_profile *profile, struct sc_card *card,
struct sc_context *ctx = card->ctx;
struct sc_pkcs15_prkey_info *key_info = (struct sc_pkcs15_prkey_info *)object->data;
struct sc_cardctl_setcos_gen_store_key_info args;
struct sc_cardctl_setcos_data_obj data_obj;
struct sc_file *file = NULL;
int r, keybits = key_info->modulus_length;
@ -520,7 +518,6 @@ setcos_create_pin_internal(sc_profile_t *profile, sc_card_t *card,
{
struct sc_context *ctx = card->ctx;
u8 data[32];
int so_pin_ref;
int r;
struct sc_cardctl_setcos_data_obj data_obj;
sc_file_t *pinfile = NULL;