diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-10-10 15:59:35 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-10-10 18:05:35 +0200 |
commit | a42e922507aa143868194508b976b4fd3ceac3d1 (patch) | |
tree | 9861f2420a4b930606e1cd090c4ee932120ee11d /include/device_proto.h | |
parent | 7168f4a74b1c4b38582186b36b222eee8b72cc5c (diff) | |
download | libnitrokey-a42e922507aa143868194508b976b4fd3ceac3d1.tar.gz libnitrokey-a42e922507aa143868194508b976b4fd3ceac3d1.tar.bz2 |
Translate properly Storage error on AES decoding fail
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/device_proto.h')
-rw-r--r-- | include/device_proto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/device_proto.h b/include/device_proto.h index d7edfe2..0be40f8 100644 --- a/include/device_proto.h +++ b/include/device_proto.h @@ -300,6 +300,9 @@ namespace nitrokey { resp.last_command_status = static_cast<uint8_t>(stick10::command_status::wrong_password); resp.device_status = static_cast<uint8_t>(stick10::device_status::ok); break; + case stick20::device_status::no_user_password_unlock: + resp.last_command_status = static_cast<uint8_t>(stick10::command_status::AES_dec_failed); + resp.device_status = static_cast<uint8_t>(stick10::device_status::ok); default: LOG(std::string("Unknown storage device status, cannot translate: ") + std::to_string(resp.storage_status.device_status), Loglevel::DEBUG); |