g10: smartcard keygen change.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Oct 2016 04:30:47 +0000 (13:30 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Oct 2016 04:30:47 +0000 (13:30 +0900)
commit980c037bedb968ddf155dd334c0a70b918a17759
tree9edc34bfa918ba081506f9e6d0596963f2d465b7
parent82cbab906a3e72a98fdc16096f2f0451465969a2
g10: smartcard keygen change.

* g10/call-agent.c (scd_genkey_cb_append_savedbytes): Remove.
(scd_genkey_cb): Only handle KEY-CREATED-AT and PROGRESS.
(agent_scd_genkey): Remove INFO argument.  CREATETIME is now in/out
argument.
(agent_readkey): Use READKEY --card instead of SCD READKEY.
* g10/keygen.c (gen_card_key): Use READKEY --card command of the agent
to retrieve public key information from card and let the agent make
a file for private key with shadow info.
--

This change removes gpg's KEY-DATA handling for SCD GENKEY.  Information
with KEY-DATA is simply not used.  Instead, it is read by READKEY --card
command of gpg-agent.  This can consolidate public key handling in a
single method by READKEY.

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