diff options
author | Werner Koch <wk@gnupg.org> | 2022-01-18 08:03:27 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2022-01-18 08:03:27 +0100 |
commit | 38e100acb7201010d46a50e6a371603373b2a30e (patch) | |
tree | 7a137791679ff86665abffd89780b410fd7f5d10 /g10/call-agent.h | |
parent | gpgconf: Add command aliases -L -K -R. (diff) | |
download | gnupg2-38e100acb7201010d46a50e6a371603373b2a30e.tar.xz gnupg2-38e100acb7201010d46a50e6a371603373b2a30e.zip |
gpg: Print Yubikey version correctly.
* g10/call-agent.c (learn_status_cb): Parse APPVERSION.
* g10/call-agent.h (struct agent_card_info_s): Add field appversion.
* g10/card-util.c (print_a_version): New.
(current_card_status): Print version from appversion.
--
This is a regression due to the PIV support. Note that the newer
gpg-card worked correctly.
GnuPG-bug-id: 5787
Diffstat (limited to 'g10/call-agent.h')
-rw-r--r-- | g10/call-agent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h index efea7ec4a..a4cbc3162 100644 --- a/g10/call-agent.h +++ b/g10/call-agent.h @@ -32,6 +32,7 @@ struct agent_card_info_s int error; /* private. */ char *reader; /* Reader information. */ char *apptype; /* Malloced application type string. */ + unsigned int appversion; /* Version of the application. */ unsigned int manufacturer_id; char *manufacturer_name; /* malloced. */ char *serialno; /* malloced hex string. */ |