summaryrefslogtreecommitdiffstats
path: root/g10/card-util.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2018-11-15 04:19:02 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2018-11-15 04:31:11 +0100
commita5542a4a702c2210facf58a98bc8d3d16089b6ab (patch)
tree8f982554c7e8724253fd15dcba28238eb62a82e5 /g10/card-util.c
parentMerge branch 'seckey-sync-work' into master (diff)
downloadgnupg2-a5542a4a702c2210facf58a98bc8d3d16089b6ab.tar.xz
gnupg2-a5542a4a702c2210facf58a98bc8d3d16089b6ab.zip
card: Display if KDF is enabled or not.
* g10/call-agent.h (kdf_do_enabled): New field. * g10/call-agent.c (learn_status_cb): Set kdf_do_enabled if available. * g10/card-util.c (current_card_status): Inform the availability. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10/card-util.c')
-rw-r--r--g10/card-util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/card-util.c b/g10/card-util.c
index a1a099d85..bfaac3bd7 100644
--- a/g10/card-util.c
+++ b/g10/card-util.c
@@ -618,6 +618,11 @@ current_card_status (ctrl_t ctrl, estream_t fp,
tty_fprintf (fp, "PIN retry counter : %d %d %d\n",
info.chvretry[0], info.chvretry[1], info.chvretry[2]);
tty_fprintf (fp, "Signature counter : %lu\n", info.sig_counter);
+ if (info.extcap.kdf)
+ {
+ tty_fprintf (fp, "KDF setting ......: %s\n",
+ info.kdf_do_enabled ? "on" : "off");
+ }
tty_fprintf (fp, "Signature key ....:");
print_shax_fpr (fp, info.fpr1len? info.fpr1:NULL, info.fpr1len);
if (info.fpr1len && info.fpr1time)