diff options
| author | Werner Koch <[email protected]> | 2019-03-28 09:56:28 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2019-03-28 09:57:27 +0000 |
| commit | 2f761251c5730a9ad113fa58466addc9c2372da8 (patch) | |
| tree | 1f024540d015ea92f086598a5d31b3f0a97db557 /tools/gpg-card.c | |
| parent | scd: Support reading the Yubikey 4 firmware version. (diff) | |
| download | gnupg-2f761251c5730a9ad113fa58466addc9c2372da8.tar.gz gnupg-2f761251c5730a9ad113fa58466addc9c2372da8.zip | |
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 <[email protected]>
Diffstat (limited to 'tools/gpg-card.c')
| -rw-r--r-- | tools/gpg-card.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpg-card.c b/tools/gpg-card.c index e2d728dab..a3113c9c5 100644 --- a/tools/gpg-card.c +++ b/tools/gpg-card.c @@ -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)); |
