aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-10-28 16:29:55 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:26 +0100
commitce30b49b4d50f2eff39a40ddd0c02ad96b78654c (patch)
tree087d51ac8ac9dd43194b8546bab7eaab1e354d6b /NitrokeyManager.cc
parent6343eea03980627cb763de777af6b316130bdf43 (diff)
downloadlibnitrokey-ce30b49b4d50f2eff39a40ddd0c02ad96b78654c.tar.gz
libnitrokey-ce30b49b4d50f2eff39a40ddd0c02ad96b78654c.tar.bz2
Make packet variables' names more clear
General fixes Remove default values from hidden volume setup command rename password -> pin Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
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;
}
}