From 37d833828746b2437479123866d5c54ae78e2b14 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 27 Jul 2016 06:40:31 +0200 Subject: Remove auth from getPWSslotName does not need auth. Passing tests. Signed-off-by: Szczepan Zalega --- NitrokeyManager.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'NitrokeyManager.cc') diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index 2d63c21..4446d38 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -250,12 +250,6 @@ namespace nitrokey{ assert (is_valid_password_safe_slot_number(slot_number)); auto p = get_payload(); p.slot_number = slot_number; - - auto auth = get_payload(); - strcpyT(auth.temporary_password, temporary_password); - auth.crc_to_authorize = GetPasswordSafeSlotName::CommandTransaction::getCRC(p); - UserAuthorize::CommandTransaction::run(*device, auth); - auto response = GetPasswordSafeSlotName::CommandTransaction::run(*device, p); return strdup((const char *) response.slot_name); } -- cgit v1.2.1