From 64042e16048e61c5b83401eadc5bce1f6bd05c46 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 20 Jul 2016 07:32:54 +0200 Subject: Initializing with external function Signed-off-by: Szczepan Zalega --- NitrokeyManager.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'NitrokeyManager.cc') diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index 70b0132..eec595f 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -104,7 +104,7 @@ namespace nitrokey{ memset(payload.slot_token_id, 0, sizeof(payload.slot_token_id)); //????? Authorize::CommandPayload auth; - auth.initialize(); + initialize(auth); strcpy((char *) (auth.temporary_password), temporary_password); auth.crc_to_authorize = auth.crc_to_authorize = WriteToHOTPSlot::CommandTransaction::getCRC(payload); Authorize::CommandTransaction::run(*device, auth); @@ -140,7 +140,6 @@ namespace nitrokey{ bool NitrokeyManager::authorize(const char *pin, const char *temporary_password) { FirstAuthenticate::CommandPayload authreq; initialize(authreq); //TODO - authreq.initialize(); strcpy((char *) (authreq.card_password), pin); strcpy((char *) (authreq.temporary_password), temporary_password); FirstAuthenticate::CommandTransaction::run(*device, authreq); -- cgit v1.2.1