feat: v1.5.6, piv-meta supports 9a,9c,9d,9e
This commit is contained in:
@@ -34,9 +34,17 @@ impl Command for CommandImpl {
|
||||
|
||||
let mut yk = opt_result!(YubiKey::open(), "YubiKey not found: {}");
|
||||
|
||||
let retired_slot_id = opt_result!(RetiredSlotId::from_str(slot), "Slot not found: {}");
|
||||
debugging!("Slot id: {}", retired_slot_id);
|
||||
let slot_id = SlotId::Retired(retired_slot_id);
|
||||
let slot_id = match slot {
|
||||
"9a" => SlotId::Authentication,
|
||||
"9c" => SlotId::Signature,
|
||||
"9d" => SlotId::KeyManagement,
|
||||
"9e" => SlotId::CardAuthentication,
|
||||
_ => {
|
||||
let retired_slot_id = opt_result!(RetiredSlotId::from_str(slot), "Slot not found: {}");
|
||||
debugging!("Slot id: {}", retired_slot_id);
|
||||
SlotId::Retired(retired_slot_id)
|
||||
}
|
||||
};
|
||||
|
||||
json.insert("slot", slot.to_string());
|
||||
if let Ok(meta) = metadata(&mut yk, slot_id) {
|
||||
|
||||
Reference in New Issue
Block a user