summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-29 15:15:35 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:58 +0200
commit0038f840f8279483e4a8fcb9edf800425fdb9fec (patch)
tree0a15b30ae8cf8f925ef67b310aa4aecd26e06362 /include
parent5cd264c294ca6f1bf0758bb5fb0b51f3584d2795 (diff)
downloadlibnitrokey-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.h2
-rw-r--r--include/stick20_commands.h4
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 {