feat: update piv-summary

This commit is contained in:
2023-10-05 21:44:38 +08:00
parent c71b6bef89
commit 506f34fe79

View File

@@ -121,7 +121,14 @@ fn print_summary_info(yubikey: &mut YubiKey, slot: SlotId, piv_slots: &mut Vec<P
touch_policy: touch_policy.as_ref().unwrap().to_string(), touch_policy: touch_policy.as_ref().unwrap().to_string(),
}); });
} else { } else {
success!("Slot: {:x}, algorithm: {}, name: {:?},subject: {}", slot_id, algorithm_id, slot, cert_subject); success!("Slot: {:x}, algorithm: {}, name: {:?}, subject: {}, pin policy: {}, touch policy: {}",
slot_id,
algorithm_id,
slot,
cert_subject,
pin_policy.as_ref().unwrap(),
touch_policy.as_ref().unwrap(),
);
} }
Ok(()) Ok(())