summaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-12-12 17:45:35 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-02-23 15:42:38 +0100
commit08e0a45a8f10ae4fbe294a903b3a6264aa3c4333 (patch)
treedcc5b69a4a012f06aae73c4ad96acf5794e98117 /NK_C_API.cc
parent66a67b7b69b9cb43a810449761c78883e9e11bd6 (diff)
downloadlibnitrokey-08e0a45a8f10ae4fbe294a903b3a6264aa3c4333.tar.gz
libnitrokey-08e0a45a8f10ae4fbe294a903b3a6264aa3c4333.tar.bz2
Correct variable name for unencrypted ro/rw switch
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index 9b53b49..8ce318f 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -495,17 +495,17 @@ extern "C" {
});
}
- NK_C_API int NK_set_unencrypted_read_only(const char* user_pin) {
+ NK_C_API int NK_set_unencrypted_read_only(const char* user_admin_pin) {
auto m = NitrokeyManager::instance();
return get_without_result([&]() {
- m->set_unencrypted_read_only(user_pin);
+ m->set_unencrypted_read_only(user_admin_pin);
});
}
- NK_C_API int NK_set_unencrypted_read_write(const char* user_pin) {
+ NK_C_API int NK_set_unencrypted_read_write(const char* user_admin_pin) {
auto m = NitrokeyManager::instance();
return get_without_result([&]() {
- m->set_unencrypted_read_write(user_pin);
+ m->set_unencrypted_read_write(user_admin_pin);
});
}