summaryrefslogtreecommitdiff
path: root/include/command_id.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-10-13 16:58:03 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-10-13 16:58:03 +0200
commit448697c66dc7c41d8d948839645a7057bae3dd62 (patch)
treee1d085e6d72983f8453b5551935722e7e9558abe /include/command_id.h
parentba97d2efd73bd004bc3d1b0bf76e32e17e739144 (diff)
downloadlibnitrokey-448697c66dc7c41d8d948839645a7057bae3dd62.tar.gz
libnitrokey-448697c66dc7c41d8d948839645a7057bae3dd62.tar.bz2
NK Storage: cmd output status constants
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/command_id.h')
-rw-r--r--include/command_id.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/command_id.h b/include/command_id.h
index 87d270e..45285aa 100644
--- a/include/command_id.h
+++ b/include/command_id.h
@@ -5,6 +5,16 @@
namespace nitrokey {
namespace proto {
+#define OUTPUT_CMD_STICK20_STATUS_IDLE 0
+#define OUTPUT_CMD_STICK20_STATUS_OK 1
+#define OUTPUT_CMD_STICK20_STATUS_BUSY 2
+#define OUTPUT_CMD_STICK20_STATUS_WRONG_PASSWORD 3
+#define OUTPUT_CMD_STICK20_STATUS_BUSY_PROGRESSBAR 4
+#define OUTPUT_CMD_STICK20_STATUS_PASSWORD_MATRIX_READY 5
+#define OUTPUT_CMD_STICK20_STATUS_NO_USER_PASSWORD_UNLOCK 6
+#define OUTPUT_CMD_STICK20_STATUS_SMARTCARD_ERROR 7
+#define OUTPUT_CMD_STICK20_STATUS_SECURITY_BIT_ACTIVE 8
+
#define STICK20_CMD_START_VALUE 0x20