setcos_generate_key(): use size_t instead of int to fix a compiler
warning pkcs15-setcos.c:488: warning: comparison between signed and unsigned git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4199 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
a3aa685be2
commit
de2b498c31
|
@ -433,7 +433,8 @@ setcos_generate_key(struct sc_profile *profile, struct sc_pkcs15_card *p15card,
|
|||
struct sc_cardctl_setcos_gen_store_key_info args;
|
||||
struct sc_cardctl_setcos_data_obj data_obj;
|
||||
struct sc_pkcs15_prkey_info *key_info = (struct sc_pkcs15_prkey_info *)object->data;
|
||||
int r, keybits = key_info->modulus_length;
|
||||
int r;
|
||||
size_t keybits = key_info->modulus_length;
|
||||
unsigned char raw_pubkey[256];
|
||||
struct sc_file *file = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue