summaryrefslogtreecommitdiff
path: root/NK_C_API.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-05-19 17:57:12 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-05-19 17:57:12 +0200
commite91e21d5aa6c885fcb0c04ea130c93b72ce9a92b (patch)
treeed6dbc13e837351e4df6de5b0b2408c1c400f508 /NK_C_API.h
parentd0155ee65bd26a21190f655a53c01b2f08d84427 (diff)
parentecd0a6993d90bad030a568c88f804c9f8eaa6315 (diff)
downloadlibnitrokey-e91e21d5aa6c885fcb0c04ea130c93b72ce9a92b.tar.gz
libnitrokey-e91e21d5aa6c885fcb0c04ea130c93b72ce9a92b.tar.bz2
Merge branch 'pr_113'
Mark unused parameters in TOTP code getter in the C API. Closes #113
Diffstat (limited to 'NK_C_API.h')
-rw-r--r--NK_C_API.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/NK_C_API.h b/NK_C_API.h
index 222e5e1..5985c0b 100644
--- a/NK_C_API.h
+++ b/NK_C_API.h
@@ -265,9 +265,9 @@ extern "C" {
/**
* Get TOTP code from the device
* @param slot_number TOTP slot number, slot_number<15
- * @param challenge TOTP challenge
- * @param last_totp_time last time
- * @param last_interval last interval
+ * @param challenge TOTP challenge -- unused
+ * @param last_totp_time last time -- unused
+ * @param last_interval last interval --unused
* @return TOTP code
*/
NK_C_API char * NK_get_totp_code(uint8_t slot_number, uint64_t challenge, uint64_t last_totp_time,
@@ -276,9 +276,9 @@ extern "C" {
/**
* Get TOTP code from the device (PIN protected)
* @param slot_number TOTP slot number, slot_number<15
- * @param challenge TOTP challenge
- * @param last_totp_time last time
- * @param last_interval last interval
+ * @param challenge TOTP challenge -- unused
+ * @param last_totp_time last time -- unused
+ * @param last_interval last interval -- unused
* @param user_temporary_password char[25] user temporary password if PIN protected OTP codes are enabled,
* otherwise should be set to empty string - ''
* @return TOTP code