Delete unnecessary commented-out code

We will handle the CardManagement slot separately.
This commit is contained in:
Jack Grigg
2019-11-30 22:18:31 +00:00
parent 11c93d6421
commit bc95d8b7b9
-6
View File
@@ -611,12 +611,6 @@ impl YubiKey {
let mut key_data = Zeroizing::new(vec![0u8; 1024]); let mut key_data = Zeroizing::new(vec![0u8; 1024]);
let templ = [0, Ins::ImportKey.code(), algorithm.into(), key.into()]; 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 if pin_policy != YKPIV_PINPOLICY_DEFAULT
&& pin_policy != YKPIV_PINPOLICY_NEVER && pin_policy != YKPIV_PINPOLICY_NEVER
&& pin_policy != YKPIV_PINPOLICY_ONCE && pin_policy != YKPIV_PINPOLICY_ONCE