aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-02-01 12:12:13 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-02-01 12:12:13 +0100
commite2e009d7d55b75da4537b1fbecb6759c0aabb63c (patch)
tree5afe04af8bf4eecbfb6d007b1fa77aab85121fa2 /NK_C_API.cc
parent3e37da97c7b2417251585c1d985b54c9a71561e7 (diff)
parent2df8bb7f9da3231cb5a7153401d524feb7409642 (diff)
downloadlibnitrokey-e2e009d7d55b75da4537b1fbecb6759c0aabb63c.tar.gz
libnitrokey-e2e009d7d55b75da4537b1fbecb6759c0aabb63c.tar.bz2
Merge branch 'expose_firmware_update'
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc7
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([&]() {