From 8d21114df0ee75e2129916acb38b212704ed78cf Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 20 Jul 2016 12:26:53 +0200 Subject: Working TOTP handling (passing RFC tests) Signed-off-by: Szczepan Zalega --- include/stick10_commands.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/stick10_commands.h') diff --git a/include/stick10_commands.h b/include/stick10_commands.h index 13842fb..ca836db 100644 --- a/include/stick10_commands.h +++ b/include/stick10_commands.h @@ -68,6 +68,12 @@ class SetTime : Command { uint64_t time; // posix time bool isValid() const { return reset && reset != 1; } + std::string dissect() const { + std::stringstream ss; + ss << "reset:\t" << (int)(reset) << std::endl; + ss << "time:\t" << (time) << std::endl; + return ss.str(); + } } __packed; typedef Transaction -- cgit v1.2.1