chore: output format
This commit is contained in:
@@ -47,7 +47,8 @@ fn print_cert_info(yubikey: &mut YubiKey, slot: SlotId) -> XResult<()> {
|
|||||||
let cert = match Certificate::read(yubikey, slot) {
|
let cert = match Certificate::read(yubikey, slot) {
|
||||||
Ok(c) => c,
|
Ok(c) => c,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
debugging!("error reading certificate in slot {:?}: {}", slot, e);
|
let slot_id: u8 = slot.into();
|
||||||
|
debugging!("error reading certificate in slot {:?}, id: {:x}: {}", slot, slot_id, e);
|
||||||
return simple_error!("error reading certificate in slot {:?}: {}", slot, e);
|
return simple_error!("error reading certificate in slot {:?}: {}", slot, e);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -57,7 +58,7 @@ fn print_cert_info(yubikey: &mut YubiKey, slot: SlotId) -> XResult<()> {
|
|||||||
let fingerprint_sha256 = Sha256::digest(&buf);
|
let fingerprint_sha256 = Sha256::digest(&buf);
|
||||||
|
|
||||||
let slot_id: u8 = slot.into();
|
let slot_id: u8 = slot.into();
|
||||||
success!("Slot: {}", format!("{:x}", slot_id));
|
success!("Slot: {:?}, id: {:x}", slot, slot_id);
|
||||||
|
|
||||||
rust_util::util_msg::when(MessageType::DEBUG, || {
|
rust_util::util_msg::when(MessageType::DEBUG, || {
|
||||||
let cert_pem_obj = Pem {
|
let cert_pem_obj = Pem {
|
||||||
|
|||||||
Reference in New Issue
Block a user