From a5542a4a702c2210facf58a98bc8d3d16089b6ab Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 15 Nov 2018 12:19:02 +0900 Subject: 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 --- g10/card-util.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'g10/card-util.c') 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) -- cgit v1.2.3