aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 09:55:06 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 10:19:25 +0200
commitbc5261c18a4608806dcb866afb73f7a979e2e90f (patch)
tree77a71206566c9217f4cba40963ba8c6524451cbc /NK_C_API.cc
parent7c1c040bc57dcfd4ef8abdb481ef7b3df2b116b6 (diff)
downloadlibnitrokey-bc5261c18a4608806dcb866afb73f7a979e2e90f.tar.gz
libnitrokey-bc5261c18a4608806dcb866afb73f7a979e2e90f.tar.bz2
Allow user to choose new user PIN when unlocking
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc4
1 files changed, 2 insertions, 2 deletions
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);
});
}