aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-10-27 19:42:17 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:24 +0100
commita4d93360a600d5361a825c5270cb313202e1f318 (patch)
treea43b95520d364a4a44c60c641296636f1c10e755
parente828759986f3c9633fb0177bf446752480a66adf (diff)
downloadlibnitrokey-a4d93360a600d5361a825c5270cb313202e1f318.tar.gz
libnitrokey-a4d93360a600d5361a825c5270cb313202e1f318.tar.bz2
Fix naming for change password commands ids
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--include/command_id.h3
-rw-r--r--include/stick20_commands.h4
2 files changed, 2 insertions, 5 deletions
diff --git a/include/command_id.h b/include/command_id.h
index 76c7132..aa65dd3 100644
--- a/include/command_id.h
+++ b/include/command_id.h
@@ -66,9 +66,6 @@ enum class CommandID : uint8_t {
CHANGE_USER_PIN = 0x14,
CHANGE_ADMIN_PIN = 0x15,
- STICK20_CMD_SEND_PASSWORD = stick20::CMD_START_VALUE + 18,
- STICK20_CMD_SEND_NEW_PASSWORD = stick20::CMD_START_VALUE + 19,
-
ENABLE_CRYPTED_PARI = 0x20,
DISABLE_CRYPTED_PARI = 0x20 + 1,
ENABLE_HIDDEN_CRYPTED_PARI = 0x20 + 2,
diff --git a/include/stick20_commands.h b/include/stick20_commands.h
index a335809..7b69ec6 100644
--- a/include/stick20_commands.h
+++ b/include/stick20_commands.h
@@ -23,7 +23,7 @@ namespace nitrokey {
Admin = 'A'
};
- class ChangeAdminUserPin20Current : Command<CommandID::STICK20_CMD_SEND_PASSWORD> {
+ class ChangeAdminUserPin20Current : Command<CommandID::SEND_PASSWORD> {
public:
struct CommandPayload {
uint8_t kind;
@@ -46,7 +46,7 @@ namespace nitrokey {
};
- class ChangeAdminUserPin20New : Command<CommandID::STICK20_CMD_SEND_NEW_PASSWORD> {
+ class ChangeAdminUserPin20New : Command<CommandID::SEND_NEW_PASSWORD> {
public:
struct CommandPayload {