From 83d25d6d971b48a80c20f62f21287eba1a0fb561 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 3 Apr 2022 17:48:55 +0800 Subject: [PATCH] feat: pgp card list add algo info --- src/cmd_pgpcardlist.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmd_pgpcardlist.rs b/src/cmd_pgpcardlist.rs index 9ae8233..07f7cbd 100644 --- a/src/cmd_pgpcardlist.rs +++ b/src/cmd_pgpcardlist.rs @@ -95,6 +95,9 @@ impl Command for CommandImpl { information!("Card holder, {}", iff!(card_holder_outputs.is_empty(), "".to_string(), card_holder_outputs.join(", "))); } + if let Ok(Some(algo_info)) = trans.algorithm_information() { + information!("Algo info: {}", algo_info); + } if let Ok(application_related_data) = trans.application_related_data() { if let Ok(fingerprints) = application_related_data.fingerprints() { if let Some(a) = fingerprints.authentication() {