Home GnuPG
Diffusion GnuPG 2d4de4b6f06c

scd: Handle Yubikey's multiple apps and serialno.

Description

scd: Handle Yubikey's multiple apps and serialno.

* scd/app-common.h (yubikey_get_serialno): New.
* scd/app-openpgp.c (yubikey_get_serialno): New.
* scd/app.c (card_get_serialno): Use OpenPGP app's serialno,
when it's enabled for Yubikey.
(send_serialno_and_app_status): Use card_get_serialno, not
directly accessing ->serialno.
  • GnuPG-bug-id: T5100
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Oct 23 2020, 9:31 AM
Parents
rGc8cc35dd2c10: scd: Use app_get_serialno for app_getattr.
Branches
Unknown
Tags
Unknown
Tasks
T5100: OpenPGP app overwrites Yubikey serial number