diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-11-22 12:28:32 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-11-22 12:39:23 +0100 |
commit | 4ac4f1c33b64c9fc80bc911681143a3a52c1e5df (patch) | |
tree | c78fda220a774ee525e6abfda35c36da9167d58c /unittest/constants.py | |
parent | ef171dfd5bf23da606597a251c327ad2c52ec7b8 (diff) | |
download | libnitrokey-4ac4f1c33b64c9fc80bc911681143a3a52c1e5df.tar.gz libnitrokey-4ac4f1c33b64c9fc80bc911681143a3a52c1e5df.tar.bz2 |
Handle UNKNOWN_ERROR return code
Handle UNKNOWN_ERROR code (introduced in Storage v0.51, firmware commit
687d4aca31ce405db41231be73864ee2f91b3714) and is returned,
when device fails to retrieve the AES key.
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/constants.py')
-rw-r--r-- | unittest/constants.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittest/constants.py b/unittest/constants.py index 3fb444a..714c8c6 100644 --- a/unittest/constants.py +++ b/unittest/constants.py @@ -48,6 +48,7 @@ class DeviceErrorCode: WRONG_PASSWORD = 4 STATUS_NOT_AUTHORIZED = 5 STATUS_AES_DEC_FAILED = 0xa + STATUS_UNKNOWN_ERROR = 100 class LibraryErrors: |