feat: v1.5.4, list
This commit is contained in:
@@ -37,7 +37,26 @@ impl Command for CommandImpl {
|
||||
success!("Serial: {}", yk.serial().0);
|
||||
// success!("{:?}", yk.config());
|
||||
if let Ok(pin_retries) = yk.get_pin_retries() {
|
||||
success!("Pin retries: {}", pin_retries);
|
||||
success!("PIN retries: {}", pin_retries);
|
||||
}
|
||||
if let Ok(config) = yk.config() {
|
||||
information!("Protected data available: {}", config.protected_data_available);
|
||||
information!("PIN last changed: {:?}", config.pin_last_changed);
|
||||
information!("PUK blocked: {}", config.puk_blocked);
|
||||
information!("PUK noblock on upgrade: {}", config.puk_noblock_on_upgrade);
|
||||
information!("PUK mgm type: {:?}", config.mgm_type);
|
||||
}
|
||||
if let Ok(chuid) = yk.chuid() {
|
||||
information!("Chuid: {}", chuid)
|
||||
}
|
||||
if let Ok(ccuid) = yk.cccid() {
|
||||
information!("Ccuid: {}", ccuid)
|
||||
}
|
||||
if let Ok(piv_keys) = yk.piv_keys() {
|
||||
information!("PIV keys: {}, slots: [{}]",
|
||||
piv_keys.len(),
|
||||
piv_keys.iter().map(|k| format!("{}", k.slot())).collect::<Vec<_>>().join(", ")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user