summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/device.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device.rs b/src/device.rs
index 7d69df8..cd8a05a 100644
--- a/src/device.rs
+++ b/src/device.rs
@@ -1,3 +1,4 @@
+use auth::Authenticate;
use config::{Config, RawConfig};
use libc;
use nitrokey_sys;
@@ -148,7 +149,7 @@ pub struct Storage {}
///
/// This trait provides the commands that can be executed without authentication and that are
/// present on all supported Nitrokey devices.
-pub trait Device: GetPasswordSafe + GenerateOtp {
+pub trait Device: Authenticate + GetPasswordSafe + GenerateOtp {
/// Returns the serial number of the Nitrokey device. The serial number is the string
/// representation of a hex number.
///