From 1b03ab0377bfd106225e16bbd2baee3048b266b4 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 23 Jul 2016 15:06:23 +0200 Subject: Left comments about alternative approach to get last command execution status Signed-off-by: Szczepan Zalega --- NitrokeyManager.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'NitrokeyManager.cc') diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index e2dfa9d..81c1888 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -142,11 +142,12 @@ namespace nitrokey{ strcpy((char *) (auth.temporary_password), temporary_password); auth.crc_to_authorize = WriteToTOTPSlot::CommandTransaction::getCRC(payload); Authorize::CommandTransaction::run(*device, auth); - auto auth_successful = device->last_command_sucessfull(); +// auto auth_successful = device->last_command_sucessfull(); auto resp = WriteToTOTPSlot::CommandTransaction::run(*device, payload); - auto write_successful = device->last_command_sucessfull(); - return auth_successful && write_successful; +// auto write_successful = device->last_command_sucessfull(); +// return auth_successful && write_successful; //left to show alternative approach + return true; } const char * NitrokeyManager::get_totp_slot_name(uint8_t slot_number) { -- cgit v1.2.1