Skip to content

Commit

Permalink
card-openpgp.c
Browse files Browse the repository at this point in the history
fix so will compile on mingw

 On branch X25519-improvements-2
 Changes to be committed:
	modified:   libopensc/card-openpgp.c
  • Loading branch information
dengert committed Jan 20, 2024
1 parent 975a327 commit 9137a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libopensc/card-openpgp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2524,7 +2524,7 @@ pgp_update_new_algo_attr(sc_card_t *card, sc_cardctl_openpgp_keygen_info_t *key_
* TODO if newer cards or OpenPGP specs accept RFC8410 code
* will be needed here to not do the conversion
*/
for (i = 0; ec_curves_alt[i].oid.value[0] > 0; i++) {
for (i = 0; ec_curves_alt[i].size > 0; i++) {
if (sc_compare_oid(scoid, &ec_curves_alt[i].oid_alt)) {
scoid = &ec_curves_alt[i].oid;
break;
Expand Down

0 comments on commit 9137a8f

Please sign in to comment.