From ecd0a6993d90bad030a568c88f804c9f8eaa6315 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 18 May 2018 09:50:09 +0200 Subject: Mark NK_get_totp_code arguments as unused According to the GetTOTP class in stick10_commands_0.8.h and after firmware inspection, the challenge, last_totp_time and last_interval arguments for the get_TOTP_code method are unused. This patch adds this information to the doc comment for NK_get_totp_code and NK_get_totp_code_PIN. --- NK_C_API.h | 12 ++++++------ 1 file 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 -- cgit v1.2.3