aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-06 23:27:06 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-01-07 00:29:52 +0100
commit3fab663891d42cfe317125650394c9560639b60c (patch)
tree36d72acd96d49cc1d8da85b920a30a42acc721cb /src/lib.rs
parentd44f8be7c038bc499b36aa502f4939f41ebebfbf (diff)
downloadnitrokey-rs-3fab663891d42cfe317125650394c9560639b60c.tar.gz
nitrokey-rs-3fab663891d42cfe317125650394c9560639b60c.tar.bz2
Add the connect_model function
This patch adds the global connect_model function that can be used to connect to a Nitrokey device of a given model. Contrary to Pro::connect and Storage::connect, the model does not have to be set at compile time.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9f21518..bb34870 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -98,7 +98,7 @@ use nitrokey_sys;
pub use crate::auth::{Admin, Authenticate, User};
pub use crate::config::Config;
pub use crate::device::{
- connect, Device, DeviceWrapper, Model, Pro, Storage, StorageStatus, VolumeStatus,
+ connect, connect_model, Device, DeviceWrapper, Model, Pro, Storage, StorageStatus, VolumeStatus,
};
pub use crate::otp::{ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData};
pub use crate::pws::{GetPasswordSafe, PasswordSafe, SLOT_COUNT};