diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-13 13:54:22 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-13 15:00:29 +0200 |
commit | b6685dc2d7620a4de36dd76d833f800d0a2aaac6 (patch) | |
tree | 16af625163c5469818fa340826fffcd1d9b6d1b7 | |
parent | 4a0da78d76906f052642e19dedf72f18298e5f9c (diff) | |
download | libnitrokey-b6685dc2d7620a4de36dd76d833f800d0a2aaac6.tar.gz libnitrokey-b6685dc2d7620a4de36dd76d833f800d0a2aaac6.tar.bz2 |
Add new command IDs
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r-- | command_id.cc | 4 | ||||
-rw-r--r-- | libnitrokey/command_id.h | 2 |
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, |