diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-10-19 11:03:41 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-10-19 16:55:05 +0200 |
commit | b0a06732852f3cdf203949a117e41c4b6f5f144b (patch) | |
tree | 2c8302f38d969ac3378be14c1f74aa4ec56fcc2d /include/stick10_commands.h | |
parent | 7d579ca0ca59095596275f7b891dacce54398f1f (diff) | |
download | libnitrokey-b0a06732852f3cdf203949a117e41c4b6f5f144b.tar.gz libnitrokey-b0a06732852f3cdf203949a117e41c4b6f5f144b.tar.bz2 |
Tests: detect device Pro/Storage. skip AES_support command test for Storage
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/stick10_commands.h')
-rw-r--r-- | include/stick10_commands.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/stick10_commands.h b/include/stick10_commands.h index a60be59..d1f12b6 100644 --- a/include/stick10_commands.h +++ b/include/stick10_commands.h @@ -331,7 +331,10 @@ class GetStatus : Command<CommandID::GET_STATUS> { std::string dissect() const { std::stringstream ss; - ss << "firmware_version:\t" << firmware_version << std::endl; + ss << "firmware_version:\t" + << "[" << firmware_version << "]" << "\t" + << ::nitrokey::misc::hexdump( + (const char *)(&firmware_version), 2, false); ss << "card_serial:\t" << ::nitrokey::misc::hexdump((const char *)(card_serial), sizeof card_serial, false); |