Home GnuPG
Diffusion GnuPG 41913d76f7db

gpg: Fix default-key selection when card is available.

Description

gpg: Fix default-key selection when card is available.

* g10/getkey.c (get_seckey_default_or_card): Handle the case
when card key is not suitable for requested usage.

Cherry-pick stable commit of:
1cdd9e57f701f0d99d118d32adffe5216a94b0b2

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