Skip to content

Commit

Permalink
Delete unnecessary commented-out code
Browse files Browse the repository at this point in the history
We will handle the CardManagement slot separately.
  • Loading branch information
str4d committed Nov 30, 2019
1 parent 11c93d6 commit bc95d8b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/yubikey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,12 +611,6 @@ impl YubiKey {
let mut key_data = Zeroizing::new(vec![0u8; 1024]);
let templ = [0, Ins::ImportKey.code(), algorithm.into(), key.into()];

// Only slot we want to exclude is CardManagement, which isn't in the enum.
// TODO: Decide whether to add it or not.
// match key {
// SlotId::CardManagement => return Err(Error::KeyError),
// }

if pin_policy != YKPIV_PINPOLICY_DEFAULT
&& pin_policy != YKPIV_PINPOLICY_NEVER
&& pin_policy != YKPIV_PINPOLICY_ONCE
Expand Down

0 comments on commit bc95d8b

Please sign in to comment.