aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index fa12a5e..0d566d2 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -20,6 +20,7 @@
*/
#include "libnitrokey/NitrokeyManager.h"
+#include "NitrokeyManager.h"
#include "NitrokeyManagerOTP.h"
#include "NitrokeyManagerPWS.h"
#include "libnitrokey/LibraryException.h"
@@ -41,19 +42,6 @@ namespace nitrokey{
using nitrokey::misc::strcpyT;
-
- // package type to auth, auth type [Authorize,UserAuthorize]
- template <typename S, typename A, typename T>
- void NitrokeyManager::authorize_packet(T &package, const char *admin_temporary_password, shared_ptr<Device> device){
- if (!is_authorization_command_supported()){
- LOG("Authorization command not supported, skipping", Loglevel::WARNING);
- }
- auto auth = get_payload<A>();
- strcpyT(auth.temporary_password, admin_temporary_password);
- auth.crc_to_authorize = S::CommandTransaction::getCRC(package);
- A::CommandTransaction::run(device, auth);
- }
-
shared_ptr <NitrokeyManager> NitrokeyManager::_instance = nullptr;
NitrokeyManager::NitrokeyManager() : device(nullptr)