diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-07-20 07:32:54 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 13:54:45 +0200 |
commit | 64042e16048e61c5b83401eadc5bce1f6bd05c46 (patch) | |
tree | cda4168295675acc304b3786934b156703e8b1cd /NitrokeyManager.cc | |
parent | a5d11eab6003a6ed0f7c78ecb7136b28ee938a23 (diff) | |
download | libnitrokey-64042e16048e61c5b83401eadc5bce1f6bd05c46.tar.gz libnitrokey-64042e16048e61c5b83401eadc5bce1f6bd05c46.tar.bz2 |
Initializing with external function
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r-- | NitrokeyManager.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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); |