summaryrefslogtreecommitdiff
path: root/include/stick10_commands.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan.zalega@gmail.com>2016-03-21 08:46:27 +0100
committerSzczepan Zalega <szczepan.zalega@gmail.com>2016-03-21 08:46:27 +0100
commit75bbfc7d9e3d0f26a507c494b1e94fe71fa26ad0 (patch)
treef767c4062efbd8ef884c6cf8ae9a7f779d900afa /include/stick10_commands.h
parent20028b40e61e79856c15181ed0b5061ab6d4fa29 (diff)
downloadlibnitrokey-75bbfc7d9e3d0f26a507c494b1e94fe71fa26ad0.tar.gz
libnitrokey-75bbfc7d9e3d0f26a507c494b1e94fe71fa26ad0.tar.bz2
fixed device status logging
Diffstat (limited to 'include/stick10_commands.h')
-rw-r--r--include/stick10_commands.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/stick10_commands.h b/include/stick10_commands.h
index 13aa24f..1c21eee 100644
--- a/include/stick10_commands.h
+++ b/include/stick10_commands.h
@@ -139,6 +139,11 @@ class GetHOTP : Command<CommandID::GET_CODE> {
uint8_t code[18];
bool isValid() const { return true; }
+ std::string dissect() const {
+ std::stringstream ss;
+ ss << "code:\t" << (code) << std::endl;
+ return ss.str();
+ }
} __packed;
typedef Transaction<command_id(), struct CommandPayload, struct EmptyPayload>