diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-14 15:26:02 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-14 16:28:58 +0100 |
commit | 0262ed2e614e9222b69970289a32ddb3683b3535 (patch) | |
tree | 6fe55a9854e8c61daf7bdec9b636260aa2b92253 /src/lib.rs | |
parent | 6ea73f29daa5db0215663a0a38334b764863671d (diff) | |
download | nitrokey-rs-0262ed2e614e9222b69970289a32ddb3683b3535.tar.gz nitrokey-rs-0262ed2e614e9222b69970289a32ddb3683b3535.tar.bz2 |
Add the get_production_info method to the Storage struct
The get_production_info method maps to the NK_get_production_info
function of libnitrokey. The Storage firmware supports two query modes:
with or without a write test. libnitrokey only performs the query
without write test, so the fields that are only set for the write test
are ignored in our implementation. This affects:
- user and admin retry counts
- smart card ID
- SD card size
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -98,8 +98,8 @@ use nitrokey_sys; pub use crate::auth::{Admin, Authenticate, User}; pub use crate::config::Config; pub use crate::device::{ - connect, connect_model, Device, DeviceWrapper, Model, Pro, Storage, StorageStatus, VolumeMode, - VolumeStatus, + connect, connect_model, Device, DeviceWrapper, Model, Pro, SdCardData, Storage, + StorageProductionInfo, StorageStatus, VolumeMode, VolumeStatus, }; pub use crate::otp::{ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData}; pub use crate::pws::{GetPasswordSafe, PasswordSafe, SLOT_COUNT}; |