Home GnuPG
Diffusion GnuPG 27ae89db6e69

gpg: Fix detecting OpenPGP card by serialno.

Description

gpg: Fix detecting OpenPGP card by serialno.

* g10/card-util.c (get_info_for_key_operation): Use ->apptype to
determine card's APP.
(current_card_status): Even if its SERIALNO is not like OpenPGP card,
it's OpenPGP card when app says so.

Backported-from-master: 157f1de64e437cecd75335e9f4077ba9835e3da0

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

Details

Provenance
gniibeAuthored on Oct 26 2020, 5:49 AM
wernerCommitted on Aug 16 2022, 10:56 AM
Parents
rG12ad9529782d: common: In private key mode write "Key:" always last in name-value.
Branches
Unknown
Tags
Unknown
Tasks
T5100: OpenPGP app overwrites Yubikey serial number