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:
ludovic.rousseau 2010-04-02 12:10:33 +00:00
parent a3aa685be2
commit de2b498c31
1 changed files with 2 additions and 1 deletions

View File

@ -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;