summaryrefslogtreecommitdiff
path: root/include/stick10_commands_0.8.h
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 /include/stick10_commands_0.8.h
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 'include/stick10_commands_0.8.h')
-rw-r--r--include/stick10_commands_0.8.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/stick10_commands_0.8.h b/include/stick10_commands_0.8.h
index f0e28a6..f905794 100644
--- a/include/stick10_commands_0.8.h
+++ b/include/stick10_commands_0.8.h
@@ -51,7 +51,6 @@ namespace nitrokey {
uint8_t temporary_admin_password[25];
uint8_t type; //0-secret, 1-name
uint8_t id; //multiple reports for values longer than 30 bytes
- uint8_t length; //data length
uint8_t data[30]; //data, does not need null termination
bool isValid() const { return true; }
@@ -68,7 +67,6 @@ namespace nitrokey {
ss << "temporary_admin_password:\t" << temporary_admin_password << std::endl;
ss << "type:\t" << type << std::endl;
ss << "id:\t" << (int)id << std::endl;
- ss << "length:\t" << (int)length << std::endl;
ss << "data:" << std::endl
<< ::nitrokey::misc::hexdump((const char *) (&data), sizeof data);
return ss.str();