diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-05-28 22:02:10 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2018-05-29 00:03:56 +0200 |
commit | 89b8a947e5c622272362e967847eb19337aa68da (patch) | |
tree | ccbd24b53b4a98312247a304b51774fac2e3b685 /src/tests/util.rs | |
parent | f58400a22986cdedf34f85dc17d1d59335ffb404 (diff) | |
download | nitrokey-rs-89b8a947e5c622272362e967847eb19337aa68da.tar.gz nitrokey-rs-89b8a947e5c622272362e967847eb19337aa68da.tar.bz2 |
Add rudimentary support for the Nitrokey Storage
This patch adds the Storage struct and the test-storage feature. It
also enables all currently supported Pro commands for the Storage.
Diffstat (limited to 'src/tests/util.rs')
-rw-r--r-- | src/tests/util.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/util.rs b/src/tests/util.rs index cbf6b93..c6fbb8f 100644 --- a/src/tests/util.rs +++ b/src/tests/util.rs @@ -1,2 +1,11 @@ pub static ADMIN_PASSWORD: &str = "12345678"; pub static USER_PASSWORD: &str = "123456"; + +#[cfg(feature = "test-no-device")] +pub type Target = ::Pro; + +#[cfg(feature = "test-pro")] +pub type Target = ::Pro; + +#[cfg(feature = "test-storage")] +pub type Target = ::Storage; |