diff options
| -rw-r--r-- | NitrokeyManager.cc | 8 | ||||
| -rw-r--r-- | build/.gitignore | 1 | 
2 files changed, 7 insertions, 2 deletions
| diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index 3af74ea..faeaf03 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -860,7 +860,13 @@ namespace nitrokey{    }    stick10::ReadSlot::ResponsePayload NitrokeyManager::get_HOTP_slot_data(const uint8_t slot_number) { -    return get_OTP_slot_data(get_internal_slot_number_for_hotp(slot_number)); +    auto slot_data = get_OTP_slot_data(get_internal_slot_number_for_hotp(slot_number)); +    if (device->get_device_model() == DeviceModel::STORAGE){ +      //convert counter from string to ull +      auto counter_s = std::string(slot_data.slot_counter_s, slot_data.slot_counter_s+sizeof(slot_data.slot_counter_s)); +      slot_data.slot_counter = std::stoull(counter_s); +    } +    return slot_data;    }    void NitrokeyManager::lock_encrypted_volume() { diff --git a/build/.gitignore b/build/.gitignore deleted file mode 100644 index 72e8ffc..0000000 --- a/build/.gitignore +++ /dev/null @@ -1 +0,0 @@ -* | 
