Fixed in r4852. While working on adding ECC, one line got into other changes that where expecting 4 additional fields in the sc_cardctl_piv_genkey_info_st. The code is only used when generating a keypair on the PIV card, and only when OpenSSL in enabled.
On 10/31/2010 2:50 PM, Juan Antonio Martinez wrote: > FYI: Not sure if this is intentional, but some warnings are shown at > piv-tool.c > ..... > piv-tool.c: En la función ‘gen_key’: > piv-tool.c:252: aviso: exceso de elementos en el inicializador de struct > piv-tool.c:252: aviso: (cerca de la inicialización de ‘keydata’) > .... > > Offending line piv-tool.c#252 shows: > .... > sc_cardctl_piv_genkey_info_t > keydata = {0, 0, 0, 0, NULL, 0, NULL, 0, NULL, 0}; > .... > > But on revision r4767 sc_card_ctl_piv_genkey_info_t was defined > at cardctl.c#751 as: > .... > typedef struct sc_cardctl_piv_genkey_info_st { > unsigned int key_num; > unsigned int key_algid; /* RSA 5, 6, 7; EC 11, 14 */ > unsigned int key_bits; /* RSA */ > unsigned long exponent; /* RSA */ > unsigned char * pubkey; /* RSA */ > unsigned int pubkey_len; /* RSA */ > } sc_cardctl_piv_genkey_info_t; > .... > > BTW: what's the OpenSC polithics about compile warnings? > > Juan Antonio > > > _______________________________________________ > opensc-devel mailing list > opensc-devel@lists.opensc-project.org > http://www.opensc-project.org/mailman/listinfo/opensc-devel -- Douglas E. Engert <deeng...@anl.gov> Argonne National Laboratory 9700 South Cass Avenue Argonne, Illinois 60439 (630) 252-5444 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel