Home GnuPG
Diffusion GnuPG 9a0d8f2d8906

scd: Add option --all to the SERIALNO command.

Description

scd: Add option --all to the SERIALNO command.

* scd/command.c (cmd_serialno): Add option --all.
(open_card_with_request): Implement that option.
* scd/app.c (select_all_additional_applications_internal): New.
(select_additional_application): Add mode to call new function.

This option is currently only useful for Yubikeys and basically
ignored with other cards. Its use is

SERIALNO --all
LEARN --force --multi

which will then print keypairinfo and other stuff for the OpenPGP and
PIV application of a Yubikey. Scute is going to use this to allow
using certificates from OpenPGP and PIV at the same time.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Sep 4 2019, 1:38 PM
Parents
rGfa258379424c: scd: Fix Error checking in additioal app selection.
Branches
Unknown
Tags
Unknown