CCCID/CHUID: add basic tests and do some cleanups

- Adds tests for CCCID/CHUID, allowing not found (is that ok?)
- Move constants under their respective modules and remove `YKPIV_`
This commit is contained in:
Tony Arcieri
2019-12-07 13:08:30 -08:00
parent 2587a4ac1e
commit 9482ae62ab
9 changed files with 142 additions and 59 deletions
+1 -6
View File
@@ -136,10 +136,8 @@
)]
mod apdu;
#[cfg(feature = "untested")]
pub mod cccid;
pub mod certificate;
#[cfg(feature = "untested")]
pub mod chuid;
pub mod config;
pub mod consts;
@@ -159,10 +157,7 @@ pub mod settings;
mod transaction;
pub mod yubikey;
pub use self::{readers::Readers, yubikey::YubiKey};
#[cfg(feature = "untested")]
pub use self::{key::Key, mgm::MgmKey};
pub use self::{error::Error, key::Key, mgm::MgmKey, readers::Readers, yubikey::YubiKey};
/// Object identifiers
pub type ObjectId = u32;