aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2020-09-19 12:27:05 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2020-09-19 12:28:04 +0200
commit404c90182ca3bcb029f04a604cb5d51ba51096b9 (patch)
tree31fa4a080e8961023a94edb1550dfae378e5148b
parenta3571946002bf7e748613df5006c2f5a6564c1e4 (diff)
downloadlibnitrokey-404c90182ca3bcb029f04a604cb5d51ba51096b9.tar.gz
libnitrokey-404c90182ca3bcb029f04a604cb5d51ba51096b9.tar.bz2
Use DEPRECATED macro for C compatibility
-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 53aa658..0c74042 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
*/
- [[deprecated("NK_set_unencrypted_read_only is deprecated. Use NK_set_unencrypted_read_only_admin instead")]]
+ //[[deprecated("NK_set_unencrypted_read_only is deprecated. Use NK_set_unencrypted_read_only_admin instead")]]
+ DEPRECATED
NK_C_API int NK_set_unencrypted_read_only(const char *user_pin);
/**
@@ -850,7 +851,8 @@ extern "C" {
* @param user_pin 20 characters User PIN
* @return command processing error code
*/
- [[deprecated("NK_set_unencrypted_read_write is deprecated. Use NK_set_unencrypted_read_write_admin instead")]]
+ //[[deprecated("NK_set_unencrypted_read_write is deprecated. Use NK_set_unencrypted_read_write_admin instead")]]
+ DEPRECATED
NK_C_API int NK_set_unencrypted_read_write(const char *user_pin);
/**