aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2020-07-07 16:36:37 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2020-09-19 12:16:10 +0200
commita3571946002bf7e748613df5006c2f5a6564c1e4 (patch)
treecf76f16c69d0387ed0dfd7f7e6b0c1f4f905c5db /NK_C_API.h
parent89a73d88c9026b6347bea113896d24e419c4370c (diff)
downloadlibnitrokey-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.h')
-rw-r--r--NK_C_API.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/NK_C_API.h b/NK_C_API.h
index 5341c08..53aa658 100644
--- a/NK_C_API.h
+++ b/NK_C_API.h
@@ -837,7 +837,8 @@ 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("NK_set_unencrypted_read_only is deprecated. Use NK_set_unencrypted_read_only_admin instead")]]
+ NK_C_API int NK_set_unencrypted_read_only(const char *user_pin);
/**
* Make unencrypted volume read-write.
@@ -849,7 +850,8 @@ 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("NK_set_unencrypted_read_write is deprecated. Use NK_set_unencrypted_read_write_admin instead")]]
+ NK_C_API int NK_set_unencrypted_read_write(const char *user_pin);
/**
* Make unencrypted volume read-only.