Home GnuPG
Diffusion GnuPG 7666a4583007

scd:openpgp: Support UIF changing command.

Description

scd:openpgp: Support UIF changing command.

* g10/card-util.c (uif, cmdUIF): New.
(card_edit): Add call to uif by cmdUIF.
* scd/app-openpgp.c (do_getattr): Support UIF-1, UIF-2, and UIF-3.
(do_setattr): Likewise.
(do_learn_status): Learn UIF-1, UIF-2, and UIF-3.

(cherry picked from commit 0cb65564e022fface5ada4de8e0c2c4c3d0ac8ad)
Also included the relevant part from
commit 0240345728a84d8f235ce05889e83963e52742eb

Note that this patch is mainly to simplifying backporting and not to
support the UIF.

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

Details

Provenance
gniibeAuthored on Sep 27 2018, 9:45 AM
wernerCommitted on Oct 10 2023, 3:16 PM
Parents
rG9e3b7e26a9f9: scd:openpgp: Small speedup reading card properties.
Branches
Unknown
Tags
Unknown
Tasks
T4158: UIF (User Interaction Flag) DO support