From db34b66fb15e42aaa23eaeaba42bae359e8ea1a4 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Thu, 19 Apr 2018 15:31:00 +0200 Subject: Print firmware version details in status Signed-off-by: Szczepan Zalega --- libnitrokey/stick10_commands.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libnitrokey/stick10_commands.h b/libnitrokey/stick10_commands.h index f2ffba2..70c6c98 100644 --- a/libnitrokey/stick10_commands.h +++ b/libnitrokey/stick10_commands.h @@ -403,6 +403,8 @@ class GetStatus : Command { << "[" << firmware_version << "]" << "\t" << ::nitrokey::misc::hexdump( (const uint8_t *)(&firmware_version), sizeof firmware_version, false); + ss << "firmware_version_st.major:\t" << (int) firmware_version_st.major<< std::endl; + ss << "firmware_version_st.minor:\t" << (int) firmware_version_st.minor<< std::endl; ss << "card_serial_u32:\t" << std::hex << card_serial_u32 << std::endl; ss << "card_serial:\t" << ::nitrokey::misc::hexdump((const uint8_t *)(card_serial), -- cgit v1.2.3