From 32ed4100e098ae2930e6fd94800c6ce7041101c2 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 26 Jul 2016 12:23:26 +0200 Subject: Working PW safe getting slot name Signed-off-by: Szczepan Zalega --- include/NitrokeyManager.h | 5 ++++- include/stick10_commands.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/NitrokeyManager.h b/include/NitrokeyManager.h index ecc397d..d9844c9 100644 --- a/include/NitrokeyManager.h +++ b/include/NitrokeyManager.h @@ -49,6 +49,10 @@ namespace nitrokey { void lock_device(); + const char *get_password_safe_slot_name(uint8_t slot_number, const char *temporary_password); + const char *get_password_safe_slot_password(uint8_t slot_number); + const char *get_password_safe_slot_login(uint8_t slot_number); + private: NitrokeyManager(); ~NitrokeyManager(); @@ -63,7 +67,6 @@ namespace nitrokey { uint8_t get_internal_slot_number_for_totp(uint8_t slot_number) const; bool erase_slot(uint8_t slot_number); uint8_t *get_slot_name(uint8_t slot_number) const; - }; } diff --git a/include/stick10_commands.h b/include/stick10_commands.h index 31041d0..d350044 100644 --- a/include/stick10_commands.h +++ b/include/stick10_commands.h @@ -596,7 +596,7 @@ class Authorize : Command { class UserAuthorize : Command { public: struct CommandPayload { - uint8_t crc_to_authorize[4]; + uint64_t crc_to_authorize; uint8_t temporary_password[25]; std::string dissect() const { std::stringstream ss; -- cgit v1.2.3