From 8c5b24092faf90672523e60e6eee12a83539ce11 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 27 Jul 2016 10:32:30 +0200 Subject: Handle write config command Signed-off-by: Szczepan Zalega --- NK_C_API.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'NK_C_API.cc') diff --git a/NK_C_API.cc b/NK_C_API.cc index 441acb9..e5febe1 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -106,6 +106,13 @@ extern int NK_unlock_user_password(const char* admin_password){ }); } +extern int NK_write_config(bool numlock, bool capslock, bool scrolllock, bool enable_user_password, bool delete_user_password, + const char *admin_temporary_password) { + auto m = NitrokeyManager::instance(); + return get_without_result( [&](){ + return m->write_config(numlock, capslock, scrolllock, enable_user_password, delete_user_password, admin_temporary_password); + }); +} extern const char * NK_status() { auto m = NitrokeyManager::instance(); -- cgit v1.2.1