From 8f4fb5d6320241a27d4d8c93d819daba40c58867 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 25 Jul 2016 17:38:15 +0200 Subject: Handle changing user and admin PINs Signed-off-by: Szczepan Zalega --- include/stick10_commands.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/stick10_commands.h') diff --git a/include/stick10_commands.h b/include/stick10_commands.h index ca836db..d923d93 100644 --- a/include/stick10_commands.h +++ b/include/stick10_commands.h @@ -611,6 +611,12 @@ class ChangeUserPin : Command { struct CommandPayload { uint8_t old_pin[25]; uint8_t new_pin[25]; + std::string dissect() const { + std::stringstream ss; + ss << " old_pin:\t" << old_pin<< std::endl; + ss << " new_pin:\t" << new_pin<< std::endl; + return ss.str(); + } } __packed; typedef Transaction @@ -633,6 +639,12 @@ class ChangeAdminPin : Command { struct CommandPayload { uint8_t old_pin[25]; uint8_t new_pin[25]; + std::string dissect() const { + std::stringstream ss; + ss << " old_pin:\t" << old_pin<< std::endl; + ss << " new_pin:\t" << new_pin<< std::endl; + return ss.str(); + } } __packed; typedef Transaction -- cgit v1.2.1