summaryrefslogtreecommitdiffstats
path: root/g10/call-agent.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-01-18 08:03:27 +0100
committerWerner Koch <wk@gnupg.org>2022-01-18 08:03:27 +0100
commit38e100acb7201010d46a50e6a371603373b2a30e (patch)
tree7a137791679ff86665abffd89780b410fd7f5d10 /g10/call-agent.h
parentgpgconf: Add command aliases -L -K -R. (diff)
downloadgnupg2-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.h1
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. */