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 --- NK_C_API.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'NK_C_API.cc') diff --git a/NK_C_API.cc b/NK_C_API.cc index 2b3b5ea..049e200 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -123,10 +123,10 @@ extern int NK_build_aes_key(const char* admin_password){ }); } -extern int NK_unlock_user_password(const char* admin_password){ +extern int NK_unlock_user_password(const char *admin_password, const char *new_user_password) { auto m = NitrokeyManager::instance(); return get_without_result( [&](){ - return m->unlock_user_password(admin_password); + m->unlock_user_password(admin_password, new_user_password); }); } -- cgit v1.2.1