aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--command_id.cc4
-rw-r--r--libnitrokey/command_id.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/command_id.cc b/command_id.cc
index a6c2a28..9a329bc 100644
--- a/command_id.cc
+++ b/command_id.cc
@@ -71,6 +71,10 @@ const char *commandid_to_string(CommandID id) {
return "CHANGE_USER_PIN";
case CommandID::CHANGE_ADMIN_PIN:
return "CHANGE_ADMIN_PIN";
+ case CommandID::FIRMWARE_UPDATE:
+ return "FIRMWARE_UPDATE";
+ case CommandID::FIRMWARE_PASSWORD_CHANGE:
+ return "FIRMWARE_PASSWORD_CHANGE";
case CommandID::ENABLE_CRYPTED_PARI:
return "ENABLE_CRYPTED_PARI";
diff --git a/libnitrokey/command_id.h b/libnitrokey/command_id.h
index eb0d450..ee6726c 100644
--- a/libnitrokey/command_id.h
+++ b/libnitrokey/command_id.h
@@ -88,6 +88,8 @@ enum class CommandID : uint8_t {
CHANGE_ADMIN_PIN = 0x15,
WRITE_TO_SLOT_2 = 0x16,
SEND_OTP_DATA = 0x17,
+ FIRMWARE_UPDATE = 0x19,
+ FIRMWARE_PASSWORD_CHANGE = 0x1A,
ENABLE_CRYPTED_PARI = 0x20,
DISABLE_CRYPTED_PARI = 0x20 + 1,