aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index 538a6a1..43eb980 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -604,6 +604,7 @@ extern "C" {
});
}
+ // deprecated, noop on v0.51 and older (excl. v0.49)
NK_C_API int NK_set_unencrypted_read_only(const char *user_pin) {
auto m = NitrokeyManager::instance();
return get_without_result([&]() {
@@ -611,7 +612,8 @@ extern "C" {
});
}
- NK_C_API int NK_set_unencrypted_read_write(const char *user_pin) {
+ // deprecated, noop on v0.51 and older (excl. v0.49)
+ NK_C_API int NK_set_unencrypted_read_write(const char *user_pin) {
auto m = NitrokeyManager::instance();
return get_without_result([&]() {
m->set_unencrypted_read_write(user_pin);