From 38e100acb7201010d46a50e6a371603373b2a30e Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 18 Jan 2022 08:03:27 +0100 Subject: 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 --- g10/call-agent.h | 1 + 1 file changed, 1 insertion(+) (limited to 'g10/call-agent.h') 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. */ -- cgit v1.2.3