diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-09-13 15:24:22 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-05-25 13:38:58 +0200 |
commit | 8cfc400e7ecbc955cfc98ad956d166a347d0e5d9 (patch) | |
tree | bf0ba014b4e1bd1bfd32a886b34ca47df8a7de82 | |
parent | 06c0deb7935a9390a67bc02d6c323e64c785a026 (diff) | |
download | libnitrokey-check_invalid_slot_on_device_side.tar.gz libnitrokey-check_invalid_slot_on_device_side.tar.bz2 |
Check invalid slot number on device sidecheck_invalid_slot_on_device_side
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r-- | NitrokeyManager.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index 9a9d106..ec01692 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -247,8 +247,8 @@ using nitrokey::misc::strcpyT; return ""; } - bool NitrokeyManager::is_valid_hotp_slot_number(uint8_t slot_number) const { return slot_number < 3; } - bool NitrokeyManager::is_valid_totp_slot_number(uint8_t slot_number) const { return slot_number < 0x10-1; } //15 + bool NitrokeyManager::is_valid_hotp_slot_number(uint8_t slot_number) const { return true || slot_number < 3; } + bool NitrokeyManager::is_valid_totp_slot_number(uint8_t slot_number) const { return true || slot_number < 0x10-1; } //15 uint8_t NitrokeyManager::get_internal_slot_number_for_totp(uint8_t slot_number) const { return (uint8_t) (0x20 + slot_number); } uint8_t NitrokeyManager::get_internal_slot_number_for_hotp(uint8_t slot_number) const { return (uint8_t) (0x10 + slot_number); } |