diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-19 15:18:09 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-19 16:19:01 +0100 |
commit | d974ea42b567ad752c53ec0b2b97246d17380632 (patch) | |
tree | a163f41e227fcdf4528ee49d2cf32c6f2cc07fa0 /src | |
parent | da2ac74281c4adf4dc10b55ec267d84a8a1502dc (diff) | |
download | nitrokey-rs-d974ea42b567ad752c53ec0b2b97246d17380632.tar.gz nitrokey-rs-d974ea42b567ad752c53ec0b2b97246d17380632.tar.bz2 |
Introduce DEFAULT_ADMIN_PIN and DEFAULT_USER_PIN constants
The constants can be used for tests or after a factory reset.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -107,6 +107,11 @@ pub use crate::otp::{ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData}; pub use crate::pws::{GetPasswordSafe, PasswordSafe, SLOT_COUNT}; pub use crate::util::{CommandError, LogLevel}; +/// The default admin PIN for all Nitrokey devices. +pub const DEFAULT_ADMIN_PIN: &'static str = "12345678"; +/// The default user PIN for all Nitrokey devices. +pub const DEFAULT_USER_PIN: &'static str = "123456"; + /// A version of the libnitrokey library. /// /// Use the [`get_library_version`](fn.get_library_version.html) function to query the library |