Home GnuPG
Diffusion GnuPG e59d2b3632d8

scd: Handle canonical serialno and app specific serialno differently.

Description

scd: Handle canonical serialno and app specific serialno differently.

* scd/app-common.h (card_get_serialno): Add IS_CANONICAL arg.
* scd/app.c (app_send_devinfo): Use app specific serialno.
(card_get_serialno): Support two different cases.
(app_get_serialno): Return app specific serialno.
(send_serialno_and_app_status): Return canonical serialno.
* scd/command.c (cmd_serialno): Return app specific serialno.
(cmd_learn): Return canonical serialno.
  • GnuPG-bug-id: T5100
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Oct 27 2020, 6:35 AM
Parents
rG0f780b1aebb1: g10: Make call to agent_scd_serialno more robust.
Branches
Unknown
Tags
Unknown
Tasks
T5100: OpenPGP app overwrites Yubikey serial number