aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-27 06:40:31 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commit37d833828746b2437479123866d5c54ae78e2b14 (patch)
tree4842c66c04d6f15dbe6bce8c6c6da6651b6c51a0 /NitrokeyManager.cc
parent33344655d519b351d17d4f166dba406d1ab79e8e (diff)
downloadlibnitrokey-37d833828746b2437479123866d5c54ae78e2b14.tar.gz
libnitrokey-37d833828746b2437479123866d5c54ae78e2b14.tar.bz2
Remove auth from getPWSslotName does not need auth. Passing tests.
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc6
1 files changed, 0 insertions, 6 deletions
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<GetPasswordSafeSlotName>();
p.slot_number = slot_number;
-
- auto auth = get_payload<UserAuthorize>();
- 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);
}