aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-11-19 14:09:40 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-12-03 16:01:50 +0100
commitf615000166177dad7128247d5c99679d9560c510 (patch)
tree186d22506d7eb69b887d36e8d31a6b0920ab68a9 /NitrokeyManager.cc
parent9c2feef240e396648dfb2378f7d2428b0593c9f2 (diff)
downloadlibnitrokey-f615000166177dad7128247d5c99679d9560c510.tar.gz
libnitrokey-f615000166177dad7128247d5c99679d9560c510.tar.bz2
Remove length field from send_otp_data packet
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 7cc88eb..b991af1 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -323,7 +323,6 @@ namespace nitrokey{
auto payload2 = get_payload<stick10_08::SendOTPData>();
strcpyT(payload2.temporary_admin_password, temporary_password);
strcpyT(payload2.data, slot_name);
- payload2.length = strlen((const char *) payload2.data);
payload2.setTypeName();
stick10_08::SendOTPData::CommandTransaction::run(*device, payload2);