aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-23 15:06:23 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:56 +0200
commit1b03ab0377bfd106225e16bbd2baee3048b266b4 (patch)
treec888efb4a84fe1aad413745bdcb4e74c7bbc6b9f /NitrokeyManager.cc
parent49ea52c45eee26be51df4969ca2af8c2b7c9ceb6 (diff)
downloadlibnitrokey-1b03ab0377bfd106225e16bbd2baee3048b266b4.tar.gz
libnitrokey-1b03ab0377bfd106225e16bbd2baee3048b266b4.tar.bz2
Left comments about alternative approach to get last command execution status
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc7
1 files changed, 4 insertions, 3 deletions
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) {