Home GnuPG
Diffusion GnuPG 2f761251c573

card: Allow "yubikey disable" only for Yubikey-5 and later.

Description

card: Allow "yubikey disable" only for Yubikey-5 and later.

* tools/card-yubikey.c (yubikey_commands): Add new arg INFO and test
for Yubikey-5.
* tools/gpg-card.c (cmd_yubikey): Pass info to yubikey_commands.

The configuration can be read from a Yubikey-4 but not be written.
The mode command is also not useful because it allows only the
selection of transports. It does not allow to disable single
applications based on one transport (like OPGP and PIV). Thsi patch
shows an appropriate error message.

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

Details

Provenance
wernerAuthored on Mar 28 2019, 10:56 AM
Parents
rG5a3055eb722e: scd: Support reading the Yubikey 4 firmware version.
Branches
Unknown
Tags
Unknown