Home GnuPG
Diffusion GnuPG 8e3d4f5b63c1

gpg: Keep the integrity of the code for KEYINFO command.

Description

gpg: Keep the integrity of the code for KEYINFO command.

* g10/call-agent.c (struct keyinfo_data_parm_s): Remove CARD_AVAILABLE
field.
(keyinfo_status_cb): Don't touch CARD_AVAILABLE field.
(agent_probe_secret_key); Don't check CARD_AVAILABLE field.
* g10/import.c (do_transfer): Check if it's card key or not.

In 2.2 branch, gpg-agent doesn't have a capability to report if card
is available or not by KEYINFO command. Thus, this clean up.

  • GnuPG-bug-id: T3456
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>