diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-07-29 15:15:35 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 13:54:58 +0200 |
commit | 0038f840f8279483e4a8fcb9edf800425fdb9fec (patch) | |
tree | 0a15b30ae8cf8f925ef67b310aa4aecd26e06362 /include | |
parent | 5cd264c294ca6f1bf0758bb5fb0b51f3584d2795 (diff) | |
download | libnitrokey-0038f840f8279483e4a8fcb9edf800425fdb9fec.tar.gz libnitrokey-0038f840f8279483e4a8fcb9edf800425fdb9fec.tar.bz2 |
Merge changing PIN functions
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/NitrokeyManager.h | 2 | ||||
-rw-r--r-- | include/stick20_commands.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/NitrokeyManager.h b/include/NitrokeyManager.h index fdb485f..4f1dcfa 100644 --- a/include/NitrokeyManager.h +++ b/include/NitrokeyManager.h @@ -91,6 +91,8 @@ namespace nitrokey { bool erase_slot(uint8_t slot_number, const char *temporary_password); uint8_t *get_slot_name(uint8_t slot_number) const; + template <typename ProCommand, PasswordKind StoKind> + void change_PIN_general(char *current_PIN, char *new_PIN); }; } diff --git a/include/stick20_commands.h b/include/stick20_commands.h index 66fad15..ec1b088 100644 --- a/include/stick20_commands.h +++ b/include/stick20_commands.h @@ -21,7 +21,7 @@ namespace stick20 { Admin = 'A' }; - class ChangeAdminPin20Current : Command<CommandID::STICK20_CMD_SEND_PASSWORD> { + class ChangeAdminUserPin20Current : Command<CommandID::STICK20_CMD_SEND_PASSWORD> { public: struct CommandPayload { uint8_t kind; @@ -41,7 +41,7 @@ namespace stick20 { }; - class ChangeAdminPin20New : Command<CommandID::STICK20_CMD_SEND_NEW_PASSWORD> { + class ChangeAdminUserPin20New : Command<CommandID::STICK20_CMD_SEND_NEW_PASSWORD> { public: struct CommandPayload { |