feat: v1.5.4, list
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -336,7 +336,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "card-cli"
|
name = "card-cli"
|
||||||
version = "1.5.3"
|
version = "1.5.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"authenticator",
|
"authenticator",
|
||||||
"base64 0.13.1",
|
"base64 0.13.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "card-cli"
|
name = "card-cli"
|
||||||
version = "1.5.3"
|
version = "1.5.4"
|
||||||
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,26 @@ impl Command for CommandImpl {
|
|||||||
success!("Serial: {}", yk.serial().0);
|
success!("Serial: {}", yk.serial().0);
|
||||||
// success!("{:?}", yk.config());
|
// success!("{:?}", yk.config());
|
||||||
if let Ok(pin_retries) = yk.get_pin_retries() {
|
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