From a42e922507aa143868194508b976b4fd3ceac3d1 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 10 Oct 2017 15:59:35 +0200 Subject: Translate properly Storage error on AES decoding fail Signed-off-by: Szczepan Zalega --- include/device_proto.h | 3 +++ 1 file changed, 3 insertions(+) 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(stick10::command_status::wrong_password); resp.device_status = static_cast(stick10::device_status::ok); break; + case stick20::device_status::no_user_password_unlock: + resp.last_command_status = static_cast(stick10::command_status::AES_dec_failed); + resp.device_status = static_cast(stick10::device_status::ok); default: LOG(std::string("Unknown storage device status, cannot translate: ") + std::to_string(resp.storage_status.device_status), Loglevel::DEBUG); -- cgit v1.2.3