summaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index b61b2b2..e360ece 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -401,13 +401,10 @@ namespace nitrokey{
}
bool NitrokeyManager::is_AES_supported(const char *user_password) {
- try {
- auto a = get_payload<IsAESSupported>();
- strcpyT(a.user_password, user_password);
- IsAESSupported::CommandTransaction::run(*device, a);
- }
- catch (CommandFailedException &ex) {};
- return device->get_last_command_status() == 0;
+ auto a = get_payload<IsAESSupported>();
+ strcpyT(a.user_password, user_password);
+ IsAESSupported::CommandTransaction::run(*device, a);
+ return true;
}
} \ No newline at end of file