diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2020-09-19 16:25:40 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2020-09-19 16:25:40 +0200 |
commit | 81d61227e3a8d48c1dcc04f945a0888a7fdfdace (patch) | |
tree | d7549c7c620f31f3b9011de32576bbf66e13aa6b /NK_C_API.h | |
parent | a8e6dbfdc0169d3e5286e80450c8fedf7fa1cc24 (diff) | |
download | libnitrokey-81d61227e3a8d48c1dcc04f945a0888a7fdfdace.tar.gz libnitrokey-81d61227e3a8d48c1dcc04f945a0888a7fdfdace.tar.bz2 |
Deprecate old setters for UV ro/rw attribute
Use DEPRECATED macro on noop calls for NK Storage v0.51+
Update Travis CI config
Fixes #182
Diffstat (limited to 'NK_C_API.h')
-rw-r--r-- | NK_C_API.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -837,7 +837,9 @@ extern "C" { * @param user_pin 20 characters User PIN * @return command processing error code */ - NK_C_API int NK_set_unencrypted_read_only(const char *user_pin); + //[[deprecated("Use NK_set_unencrypted_read_only_admin instead")]] + DEPRECATED + NK_C_API int NK_set_unencrypted_read_only(const char *user_pin); /** * Make unencrypted volume read-write. @@ -849,7 +851,9 @@ extern "C" { * @param user_pin 20 characters User PIN * @return command processing error code */ - NK_C_API int NK_set_unencrypted_read_write(const char *user_pin); + //[[deprecated("Use NK_set_unencrypted_read_write_admin instead")]] + DEPRECATED + NK_C_API int NK_set_unencrypted_read_write(const char *user_pin); /** * Make unencrypted volume read-only. |