aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-18 17:05:02 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:48 +0100
commite8f6df836522250b9a9d4052722fb9780683058b (patch)
tree1a4fdbf98bf7d8c3fab989fbdb2a5724dcccf4af
parentbd5fd5d6cf42732c4a34c10d390d3596615e9a47 (diff)
downloadlibnitrokey-e8f6df836522250b9a9d4052722fb9780683058b.tar.gz
libnitrokey-e8f6df836522250b9a9d4052722fb9780683058b.tar.bz2
Use proper command code for disabling hidden volume
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--include/command_id.h4
-rw-r--r--include/stick20_commands.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/command_id.h b/include/command_id.h
index 9d12f93..d0b1454 100644
--- a/include/command_id.h
+++ b/include/command_id.h
@@ -69,9 +69,9 @@ enum class CommandID : uint8_t {
SEND_OTP_DATA = 0x17,
ENABLE_CRYPTED_PARI = 0x20,
- DISABLE_CRYPTED_PARI = 0x20 + 1, //@unused
+ DISABLE_CRYPTED_PARI = 0x20 + 1,
ENABLE_HIDDEN_CRYPTED_PARI = 0x20 + 2,
- DISABLE_HIDDEN_CRYPTED_PARI = 0x20 + 3, //@unused
+ DISABLE_HIDDEN_CRYPTED_PARI = 0x20 + 3,
ENABLE_FIRMWARE_UPDATE = 0x20 + 4, //enables update mode
EXPORT_FIRMWARE_TO_FILE = 0x20 + 5,
GENERATE_NEW_KEYS = 0x20 + 6,
diff --git a/include/stick20_commands.h b/include/stick20_commands.h
index e3bea3f..d88919b 100644
--- a/include/stick20_commands.h
+++ b/include/stick20_commands.h
@@ -33,7 +33,7 @@ namespace nitrokey {
//FIXME the volume disabling commands do not need password
class DisableEncryptedPartition : public PasswordCommand<CommandID::DISABLE_CRYPTED_PARI> {};
- class DisableHiddenEncryptedPartition : public PasswordCommand<CommandID::DISABLE_CRYPTED_PARI> {};
+ class DisableHiddenEncryptedPartition : public PasswordCommand<CommandID::DISABLE_HIDDEN_CRYPTED_PARI> {};
class EnableFirmwareUpdate : public PasswordCommand<CommandID::ENABLE_FIRMWARE_UPDATE> {};