diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-03-09 14:25:02 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-03-09 14:25:02 +0100 |
commit | 1a83474580406d2b40b1326e07db4d7d4b26aab8 (patch) | |
tree | 573520b1fc5ca4d6d38e7be0a0d652db38d1fee2 /NK_C_API.cc | |
parent | a45058113557780cb0cff32a61f39a3f36a96f33 (diff) | |
parent | 88a37af33515e904d0d032602f64bfd213e89581 (diff) | |
download | libnitrokey-1a83474580406d2b40b1326e07db4d7d4b26aab8.tar.gz libnitrokey-1a83474580406d2b40b1326e07db4d7d4b26aab8.tar.bz2 |
Merge branch 'unencrypted_volume_pin_type'
Update C API with new command, determining the PIN type for unencrypted
volume RO/RW state change.
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 66bbcf9..dde150b 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -608,6 +608,13 @@ extern "C" { }); } + NK_C_API int NK_set_unencrypted_volume_rorw_pin_type_user() { + auto m = NitrokeyManager::instance(); + return get_with_result([&]() { + return m->set_unencrypted_volume_rorw_pin_type_user() ? 1 : 0; + }); + } + NK_C_API const char* NK_list_devices_by_cpuID() { auto nm = NitrokeyManager::instance(); return get_with_string_result([&]() { |