diff options
author | NIIBE Yutaka <[email protected]> | 2015-03-09 02:00:03 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-03-09 02:00:03 +0000 |
commit | bb5a1b7c738d74d5b46340ec7b50000a2d343ca9 (patch) | |
tree | 455e6f44272a67193ed106e381d65326dbf253eb /agent/pksign.c | |
parent | doc: Some typo fixes. (diff) | |
download | gnupg-bb5a1b7c738d74d5b46340ec7b50000a2d343ca9.tar.gz gnupg-bb5a1b7c738d74d5b46340ec7b50000a2d343ca9.zip |
scd: fix for 64-bit arch.
* agent/pksign.c (agent_pksign_do): Use int.
* scd/app-openpgp.c (get_public_key): Likewise.
--
On 64-bit architecture, int and size_t might be different.
For the first argument for '%b', int is expected.
Diffstat (limited to 'agent/pksign.c')
-rw-r--r-- | agent/pksign.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/agent/pksign.c b/agent/pksign.c index d737bad33..1d3d3d845 100644 --- a/agent/pksign.c +++ b/agent/pksign.c @@ -363,12 +363,13 @@ agent_pksign_do (ctrl_t ctrl, const char *cache_nonce, *buf = 0; } - rc = gcry_sexp_build (&s_sig, NULL, "(sig-val(rsa(s%b)))", len, buf); + rc = gcry_sexp_build (&s_sig, NULL, "(sig-val(rsa(s%b)))", + (int)len, buf); } else if (is_EdDSA) { rc = gcry_sexp_build (&s_sig, NULL, "(sig-val(eddsa(r%b)(s%b)))", - len/2, buf, len/2, buf + len/2); + (int)len/2, buf, (int)len/2, buf + len/2); } else if (is_ECDSA) { |