diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2020-07-07 16:36:37 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2020-09-19 12:16:10 +0200 |
commit | a3571946002bf7e748613df5006c2f5a6564c1e4 (patch) | |
tree | cf76f16c69d0387ed0dfd7f7e6b0c1f4f905c5db /NK_C_API.cc | |
parent | 89a73d88c9026b6347bea113896d24e419c4370c (diff) | |
download | libnitrokey-a3571946002bf7e748613df5006c2f5a6564c1e4.tar.gz libnitrokey-a3571946002bf7e748613df5006c2f5a6564c1e4.tar.bz2 |
Deprecate old setters for UV ro/rw attribute
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 4 |
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); |