From 2ca5deb106ede1ffd236f153abae8fe6e3b0401c Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 19 Jun 2019 12:06:00 +0200 Subject: Add function reading HOTP slot details Signed-off-by: Szczepan Zalega --- libnitrokey/stick10_commands.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libnitrokey/stick10_commands.h') diff --git a/libnitrokey/stick10_commands.h b/libnitrokey/stick10_commands.h index 178b23f..5e8a5aa 100644 --- a/libnitrokey/stick10_commands.h +++ b/libnitrokey/stick10_commands.h @@ -304,8 +304,13 @@ class GetHOTP : Command { class ReadSlot : Command { public: + enum class CounterFormat { + ASCII = 0, + BINARY = 1, + }; struct CommandPayload { uint8_t slot_number; + CounterFormat data_format; //Storage v0.54+ only: slot_counter value format: 0 - in ascii, 1 - binary bool isValid() const { return !(slot_number & 0xF0); } -- cgit v1.2.1