aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 4c2c834..8bc0e38 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -420,7 +420,7 @@ namespace nitrokey{
}
case DeviceModel::STORAGE : {
auto p = get_payload<stick20::CreateNewKeys>();
- strcpyT(p.admin_password, admin_password);
+ strcpyT(p.admin_pin, admin_password);
p.setKindPrefixed();
stick20::CreateNewKeys::CommandTransaction::run(*device, p);
break;
@@ -448,10 +448,10 @@ namespace nitrokey{
p2.set_kind(PasswordKind::Admin);
strcpyT(p2.old_pin, admin_password);
ChangeAdminUserPin20Current::CommandTransaction::run(*device, p2);
- auto p3 = get_payload<stick20::UnlockUserPassword>();
+ auto p3 = get_payload<stick20::UnlockUserPin>();
p3.set_kind(PasswordKind::Admin);
strcpyT(p3.user_new_password, new_user_password);
- stick20::UnlockUserPassword::CommandTransaction::run(*device, p3);
+ stick20::UnlockUserPin::CommandTransaction::run(*device, p3);
break;
}
}