fix compiler warnings

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1942 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2004-10-17 20:40:58 +00:00
parent 5985415603
commit 548cf72735
3 changed files with 8 additions and 8 deletions

View File

@ -243,7 +243,7 @@ static const struct sc_asn1_entry c_asn1_dsa_prkey_obj[] = {
{ NULL }
};
int
static int
sc_pkcs15_encode_prkey_dsa(struct sc_context *ctx,
struct sc_pkcs15_prkey_dsa *key,
u8 **buf, size_t *buflen)
@ -257,7 +257,7 @@ sc_pkcs15_encode_prkey_dsa(struct sc_context *ctx,
return sc_asn1_encode(ctx, asn1_dsa_prkey_obj, buf, buflen);
}
int
static int
sc_pkcs15_decode_prkey_dsa(struct sc_context *ctx,
struct sc_pkcs15_prkey_dsa *key,
const u8 *buf, size_t buflen)

View File

@ -138,7 +138,7 @@ int sc_pkcs15_decipher(struct sc_pkcs15_card *p15card,
/* Strip any padding */
if (pad_flags & SC_ALGORITHM_RSA_PAD_PKCS1) {
r = sc_pkcs1_strip_02_padding(out, r, out, (size_t *) &r);
r = sc_pkcs1_strip_02_padding(out, (size_t)r, out, (size_t *) &r);
SC_TEST_RET(ctx, r, "Invalid PKCS#1 padding");
}

View File

@ -169,7 +169,7 @@ int sc_pin_cmd(struct sc_card *card, struct sc_pin_cmd_data *data,
data->pin_type,
data->pin_reference,
data->pin1.data,
data->pin1.len,
(size_t) data->pin1.len,
tries_left);
break;
case SC_PIN_CMD_CHANGE:
@ -178,9 +178,9 @@ int sc_pin_cmd(struct sc_card *card, struct sc_pin_cmd_data *data,
data->pin_type,
data->pin_reference,
data->pin1.data,
data->pin1.len,
(size_t) data->pin1.len,
data->pin2.data,
data->pin2.len,
(size_t) data->pin2.len,
tries_left);
break;
case SC_PIN_CMD_UNBLOCK:
@ -189,9 +189,9 @@ int sc_pin_cmd(struct sc_card *card, struct sc_pin_cmd_data *data,
data->pin_type,
data->pin_reference,
data->pin1.data,
data->pin1.len,
(size_t) data->pin1.len,
data->pin2.data,
data->pin2.len);
(size_t) data->pin2.len);
break;
}
if (r == SC_ERROR_NOT_SUPPORTED)