diff options
| author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-07-26 12:23:26 +0200 | 
|---|---|---|
| committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 13:54:57 +0200 | 
| commit | 32ed4100e098ae2930e6fd94800c6ce7041101c2 (patch) | |
| tree | 5cd408f732d1b40ec1651dbcae35ffa0f4501206 /include | |
| parent | 39b7c99bbd00c0bc4906939ceefb724a3d9ddc35 (diff) | |
| download | libnitrokey-32ed4100e098ae2930e6fd94800c6ce7041101c2.tar.gz libnitrokey-32ed4100e098ae2930e6fd94800c6ce7041101c2.tar.bz2 | |
Working PW safe getting slot name
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/NitrokeyManager.h | 5 | ||||
| -rw-r--r-- | include/stick10_commands.h | 2 | 
2 files changed, 5 insertions, 2 deletions
| 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<CommandID::AUTHORIZE> {  class UserAuthorize : Command<CommandID::USER_AUTHORIZE> {   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; | 
