scd: Fix varargs call for 64-bit arch on ECC keys.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 28 Jan 2015 02:24:29 +0000 (11:24 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 28 Jan 2015 02:24:29 +0000 (11:24 +0900)
commitf6d3c6e5263d84b94ebe13df9ff39b02109a2acb
treebb98992529acc1577ccf510181cfcd860080e3cc
parent6eebc56687935f3e993eac374b9f4cc5ad3bcf2b
scd: Fix varargs call for 64-bit arch on ECC keys.

* scd/app-openpgp.c (store_fpr): Remove CARD_VERSION from the
arguments.
(rsa_writekey): Follow the change.
(do_genkey): Likewise.
(ecc_writekey): Likewise.  Cast to size_t.

--

KEYTOCARD caused SEGV of scdaemon on 64-bit arch.  That's because
int is 32-bit, but size_t is 64-bit.
scd/app-openpgp.c