From 2ec913fdcadef73281ec30f96c0fc7cd00a4ed26 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 22 May 2018 21:41:30 +0000 Subject: Move the authenticate methods to a new Authenticate trait --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 1cfb7fd..cb44ee2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,7 +38,7 @@ //! Configure an HOTP slot: //! //! ```no_run -//! use nitrokey::{CommandStatus, ConfigureOtp, Device, OtpMode, OtpSlotData}; +//! use nitrokey::{Authenticate, CommandStatus, ConfigureOtp, OtpMode, OtpSlotData}; //! # use nitrokey::CommandError; //! //! # fn try_main() -> Result<(), (CommandError)> { @@ -73,8 +73,8 @@ //! # } //! ``` //! -//! [`authenticate_admin`]: struct.UnauthenticatedDevice.html#method.authenticate_admin -//! [`authenticate_user`]: struct.UnauthenticatedDevice.html#method.authenticate_user +//! [`authenticate_admin`]: trait.Authenticate.html#method.authenticate_admin +//! [`authenticate_user`]: trait.Authenticate.html#method.authenticate_user //! [`connect`]: fn.connect.html //! [`connect_model`]: fn.connect_model.html //! [`device`]: struct.AuthenticatedDevice.html#method.device @@ -96,7 +96,7 @@ mod util; mod tests; pub use config::Config; -pub use device::{AdminAuthenticatedDevice, Device, Model, UnauthenticatedDevice, +pub use device::{AdminAuthenticatedDevice, Authenticate, Device, Model, UnauthenticatedDevice, UserAuthenticatedDevice}; pub use otp::{ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData}; pub use util::{CommandError, CommandStatus, LogLevel}; -- cgit v1.2.1