agent: fix two bugs.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 22 Feb 2013 03:55:11 +0000 (12:55 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 22 Feb 2013 03:55:11 +0000 (12:55 +0900)
commit3c3648e720b8014828573bd708c88ba4775014e3
treea80beffc08b31684e94fa626dba70f5a157b6bca
parent7d376ffa321d4af6e62a2bc64ef2b8574b122b1a
agent: fix two bugs.

* agent/command.c (cmd_keytocard): Decrement KEYDATALEN.
* agent/findkey.c (agent_public_key_from_file): Increment for ELEMS.

--
For ECDSA and ECDH, there are 6 elements.
agent/command.c
agent/findkey.c