diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 6 | ||||
-rw-r--r-- | src/tests/pro.rs | 5 |
2 files changed, 1 insertions, 10 deletions
@@ -20,10 +20,6 @@ //! configuration, these operations are available without authentication or //! with user authentication. //! -//! Per default, libnitrokey writes log messages, for example the packets that -//! are sent to and received from the stick, to the standard output. To -//! change this behaviour, use [`set_debug`][] or [`set_log_level`][]. -//! //! # Examples //! //! Connect to any Nitrokey and print its serial number: @@ -84,8 +80,6 @@ //! [`device`]: struct.AuthenticatedDevice.html#method.device //! [`get_hotp_code`]: trait.ProvideOtp.html#method.get_hotp_code //! [`get_totp_code`]: trait.ProvideOtp.html#method.get_totp_code -//! [`set_debug`]: fn.set_debug.html -//! [`set_log_level`]: fn.set_log_level.html //! [`AdminAuthenticatedDevice`]: struct.AdminAuthenticatedDevice.html //! [`UserAuthenticatedDevice`]: struct.UserAuthenticatedDevice.html //! [`UnauthenticatedDevice`]: struct.UnauthenticatedDevice.html diff --git a/src/tests/pro.rs b/src/tests/pro.rs index ece94bf..71daa78 100644 --- a/src/tests/pro.rs +++ b/src/tests/pro.rs @@ -1,5 +1,5 @@ use std::ffi::CStr; -use {set_debug, AdminAuthenticatedDevice, CommandError, CommandStatus, Config, ConfigureOtp, +use {AdminAuthenticatedDevice, CommandError, CommandStatus, Config, ConfigureOtp, Device, GenerateOtp, Model, OtpMode, OtpSlotData, UnauthenticatedDevice}; static ADMIN_PASSWORD: &str = "12345678"; @@ -26,7 +26,6 @@ static TOTP_CODES: &[(u64, &str)] = &[ ]; fn get_test_device() -> UnauthenticatedDevice { - set_debug(false); ::connect_model(Model::Pro).expect("Could not connect to the Nitrokey Pro.") } @@ -39,7 +38,6 @@ fn get_admin_test_device() -> AdminAuthenticatedDevice { #[test] #[cfg_attr(not(feature = "test-pro"), ignore)] fn connect() { - set_debug(false); assert!(::connect().is_ok()); assert!(::connect_model(Model::Pro).is_ok()); assert!(::connect_model(Model::Storage).is_err()); @@ -57,7 +55,6 @@ fn assert_empty_serial_number() { #[test] #[cfg_attr(not(feature = "test-pro"), ignore)] fn disconnect() { - set_debug(false); ::connect().unwrap(); assert_empty_serial_number(); ::connect() |