From bc5261c18a4608806dcb866afb73f7a979e2e90f Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Fri, 5 Aug 2016 09:55:06 +0200 Subject: Allow user to choose new user PIN when unlocking Signed-off-by: Szczepan Zalega --- NitrokeyManager.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'NitrokeyManager.cc') diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index f7b3492..b61b2b2 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -372,9 +372,10 @@ namespace nitrokey{ FactoryReset::CommandTransaction::run(*device, p); } - void NitrokeyManager::unlock_user_password(const char *admin_password) { + void NitrokeyManager::unlock_user_password(const char *admin_password, const char *new_user_password) { auto p = get_payload(); strcpyT(p.admin_password, admin_password); + strcpyT(p.user_new_password, new_user_password); UnlockUserPassword::CommandTransaction::run(*device, p); } -- cgit v1.2.1