mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
5a3055eb72
commit
2f761251c5
3 changed files with 12 additions and 3 deletions
|
@ -2988,7 +2988,7 @@ cmd_yubikey (card_info_t info, char *argstr)
|
|||
|
||||
/* Note that we always do a learn to get a chance to the card back
|
||||
* into a usable state. */
|
||||
err = yubikey_commands (fp, nwords, words);
|
||||
err = yubikey_commands (info, fp, nwords, words);
|
||||
err2 = scd_learn (info);
|
||||
if (err2)
|
||||
log_error ("Error re-reading card: %s\n", gpg_strerror (err));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue