summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-06-19 19:52:26 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-06-19 19:55:18 +0200
commit2cbea6ce4e5e14af06c0ffa3794e4a07ebb04752 (patch)
treeb4fb8dcb962e48622f12b01408f91430193dbc52
parent81a288088c4e54ffce81e1971c4ccdfe2ec80b8a (diff)
downloadlibnitrokey-2cbea6ce4e5e14af06c0ffa3794e4a07ebb04752.tar.gz
libnitrokey-2cbea6ce4e5e14af06c0ffa3794e4a07ebb04752.tar.bz2
Add "deprecated" tags to get_time and NK_totp_get_time functions
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--NK_C_API.h2
-rw-r--r--libnitrokey/NitrokeyManager.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/NK_C_API.h b/NK_C_API.h
index 28e83b9..f23bb5d 100644
--- a/NK_C_API.h
+++ b/NK_C_API.h
@@ -398,7 +398,7 @@ extern "C" {
*/
NK_C_API int NK_totp_set_time_soft(uint64_t time);
- /* NK_totp_get_time() is deprecated -- use NK_totp_set_time_soft */
+ [[deprecated("NK_totp_get_time is deprecated -- use NK_totp_set_time_soft instead")]]
NK_C_API int NK_totp_get_time();
//passwords
diff --git a/libnitrokey/NitrokeyManager.h b/libnitrokey/NitrokeyManager.h
index f7a99da..0689c3f 100644
--- a/libnitrokey/NitrokeyManager.h
+++ b/libnitrokey/NitrokeyManager.h
@@ -75,7 +75,8 @@ char * strndup(const char* str, size_t maxlen);
* 1970-01-01)
*/
void set_time_soft(uint64_t time);
- /* get_time is deprecated -- use set_time_soft instead */
+
+ [[deprecated("get_time is deprecated -- use set_time_soft instead")]]
bool get_time(uint64_t time = 0);
bool erase_totp_slot(uint8_t slot_number, const char *temporary_password);
bool erase_hotp_slot(uint8_t slot_number, const char *temporary_password);