summaryrefslogtreecommitdiffstats
path: root/tools/gpg-card.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2020-09-08 08:34:42 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2020-09-08 08:34:42 +0200
commit2bc1ec294422504e2d2e5d20716aba68f1c2b0d7 (patch)
treedbf3e2e3ff84482a72b8d09b44b8297dea76251c /tools/gpg-card.h
parentscd: Add a workaround for Yubikey. (diff)
downloadgnupg2-2bc1ec294422504e2d2e5d20716aba68f1c2b0d7.tar.xz
gnupg2-2bc1ec294422504e2d2e5d20716aba68f1c2b0d7.zip
gpg,tools: Add handling of supported algorithms by a card.
* g10/call-agent.h (struct agent_card_info_s): Add supported_keyalgo. * g10/call-agent.c (learn_status_cb): Parse KEY-ATTR-INFO. (agent_release_card_info): Release supported_keyalgo. * tools/gpg-card.h (struct card_info_s): Add supported_keyalgo. * tools/card-call-scd.c (learn_status_cb): Parse KEY-ATTR-INFO. (release_card_info): Release supported_keyalgo. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'tools/gpg-card.h')
-rw-r--r--tools/gpg-card.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gpg-card.h b/tools/gpg-card.h
index 067720d6c..8c8bc0671 100644
--- a/tools/gpg-card.h
+++ b/tools/gpg-card.h
@@ -22,6 +22,7 @@
#define GNUPG_GPG_CARD_H
#include "../common/session-env.h"
+#include "../common/strlist.h"
/* We keep all global options in the structure OPT. */
@@ -188,6 +189,7 @@ struct card_info_s
int kdf_do_enabled; /* True if card has a KDF object. */
int uif[3]; /* True if User Interaction Flag is on. */
/* 1 = on, 2 = permanent on. */
+ strlist_t supported_keyalgo[3];
};
typedef struct card_info_s *card_info_t;