feat: piv
This commit is contained in:
@@ -43,8 +43,18 @@ impl Command for CommandImpl {
|
|||||||
Err(e) => warning!("PIN retries: <none> {}", e),
|
Err(e) => warning!("PIN retries: <none> {}", e),
|
||||||
}
|
}
|
||||||
if sub_arg_matches.is_present("show-config") {
|
if sub_arg_matches.is_present("show-config") {
|
||||||
let cofnig = yk.config();
|
let config = yk.config();
|
||||||
information!("Config: {:#?}", cofnig);
|
information!("Config: {:#?}", config);
|
||||||
|
}
|
||||||
|
|
||||||
|
match yk.piv_keys() {
|
||||||
|
Ok(keys) => {
|
||||||
|
information!("Found {} PIV keys", keys.len());
|
||||||
|
if detail_output {
|
||||||
|
keys.iter().for_each(|k| information!("Found key: {:?}", k));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Err(e) => failure!("Get PIV keys failed: {}", e)
|
||||||
}
|
}
|
||||||
|
|
||||||
for slot in yubikey::piv::SLOTS.iter().cloned() {
|
for slot in yubikey::piv::SLOTS.iter().cloned() {
|
||||||
|
|||||||
Reference in New Issue
Block a user