feat: v1.7.2
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -320,7 +320,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "card-cli"
|
name = "card-cli"
|
||||||
version = "1.7.1"
|
version = "1.7.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"authenticator",
|
"authenticator",
|
||||||
"base64 0.21.2",
|
"base64 0.21.2",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "card-cli"
|
name = "card-cli"
|
||||||
version = "1.7.1"
|
version = "1.7.2"
|
||||||
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
@@ -52,10 +52,20 @@ impl Command for CommandImpl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
match yk.piv_keys() {
|
match yk.piv_keys() {
|
||||||
Ok(keys) => {
|
Ok(mut keys) => {
|
||||||
information!("Found {} PIV keys", keys.len());
|
information!("Found {} PIV keys", keys.len());
|
||||||
if detail_output {
|
keys.sort_by_key(|a| u8::from(a.slot()));
|
||||||
keys.iter().for_each(|k| debugging!("Found key: {:?}", k));
|
for k in keys {
|
||||||
|
information!(
|
||||||
|
"Found PIV #{:x} @{}, subject: {}, signature: {}",
|
||||||
|
u8::from(k.slot()),
|
||||||
|
k.slot(),
|
||||||
|
k.certificate().subject(),
|
||||||
|
k.certificate().cert.signature_algorithm.oid
|
||||||
|
);
|
||||||
|
if detail_output {
|
||||||
|
debugging!("Found key: {:?}", k);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(e) => failure!("Get PIV keys failed: {}", e)
|
Err(e) => failure!("Get PIV keys failed: {}", e)
|
||||||
|
|||||||
Reference in New Issue
Block a user