aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2019-03-18 20:19:57 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2019-03-18 20:19:57 +0100
commit32c425a00458b7e8c7c1edfd293564dc1bee2a6d (patch)
treee9efbc4a60a81bf7bfbe461691a916f9eccb6704
parent3a797e0db06b66a9f333cc5126a39eec3a1e3695 (diff)
downloadlibnitrokey-32c425a00458b7e8c7c1edfd293564dc1bee2a6d.tar.gz
libnitrokey-32c425a00458b7e8c7c1edfd293564dc1bee2a6d.tar.bz2
Revert "Storage v0.54: send slot counter as binary integer, instead of string repr"154-storage54
This reverts commit f3c5653a0193312a47fe52a9132cf0f5a8bd83eb.
-rw-r--r--NitrokeyManager.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 9562be1..7b8deaa 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -556,12 +556,8 @@ using nitrokey::misc::strcpyT;
break;
}
case DeviceModel::STORAGE: {
- if (get_minor_firmware_version() <= 53) {
- string counter = to_string(hotp_counter);
- strcpyT(payload.slot_counter_s, counter.c_str());
- } else {
- payload.slot_counter = hotp_counter;
- }
+ string counter = to_string(hotp_counter);
+ strcpyT(payload.slot_counter_s, counter.c_str());
break;
}
default: