From e955ca245ea08e68ae2397f1583c8728d72acbd8 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 15 Nov 2018 13:57:31 +0900 Subject: card: Display UIF setting. * g10/call-agent.h (agent_card_info_s): Add UIF fields. * g10/call-agent.c (learn_status_cb): Put UIF DOs info. * g10/card-util.c (current_card_status): Output for UIF. Signed-off-by: NIIBE Yutaka --- g10/card-util.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'g10/card-util.c') diff --git a/g10/card-util.c b/g10/card-util.c index 8de061aa4..eca248433 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -516,6 +516,11 @@ current_card_status (ctrl_t ctrl, estream_t fp, { es_fprintf (fp, "kdf:%s:\n", info.kdf_do_enabled ? "on" : "off"); } + if (info.extcap.bt) + { + es_fprintf (fp, "uif:%d:%d:%d:\n", + info.uif[0], info.uif[1], info.uif[2]); + } for (i=0; i < 4; i++) { @@ -627,6 +632,12 @@ current_card_status (ctrl_t ctrl, estream_t fp, tty_fprintf (fp, "KDF setting ......: %s\n", info.kdf_do_enabled ? "on" : "off"); } + if (info.extcap.bt) + { + tty_fprintf (fp, "UIF setting ......: Sign=%s Decrypt=%s Auth=%s\n", + info.uif[0] ? "on" : "off", info.uif[1] ? "on" : "off", + info.uif[2] ? "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