agent, g10: Fix keygen.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Oct 2016 11:01:46 +0000 (20:01 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Oct 2016 11:01:46 +0000 (20:01 +0900)
commit9a34e2142b426b98c73fd888102ea1596bbce62a
tree42c3e76d69eca50102803c27b85a3b535fa0e3d3
parentb680f79cc112c4831293e259d7db2921bcd783a4
agent, g10: Fix keygen.

* agent/command.c (cmd_readkey): Get length after card_readkey.
* g10/keygen.c (gen_card_key): Fix off-by-one error.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
agent/command.c
g10/keygen.c