diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-02-01 12:00:43 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-02-01 12:10:36 +0100 |
commit | 81b4dc8d6316f0e7b9149dcfd0cbe192a4ae900f (patch) | |
tree | 1f9734016ba2c3872104112f3ada366c84289643 /NK_C_API.cc | |
parent | 3e37da97c7b2417251585c1d985b54c9a71561e7 (diff) | |
download | libnitrokey-81b4dc8d6316f0e7b9149dcfd0cbe192a4ae900f.tar.gz libnitrokey-81b4dc8d6316f0e7b9149dcfd0cbe192a4ae900f.tar.bz2 |
Expose enabling firmware update in C API
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index 6afce74..33a5fbb 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -538,6 +538,13 @@ extern "C" { }); } + NK_C_API int NK_enable_firmware_update(const char* update_password){ + auto m = NitrokeyManager::instance(); + return get_without_result([&]() { + m->enable_firmware_update(update_password); + }); + } + NK_C_API const char* NK_get_status_storage_as_string() { auto m = NitrokeyManager::instance(); return get_with_string_result([&]() { |