diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-07-20 08:12:20 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 13:54:56 +0200 |
commit | fb37116ea77f7961b12b1e289c3d48e6e517ea88 (patch) | |
tree | ba67e240be3d94bfb9d45d7d3b0e17bd0b834d7b /NK_C_API.h | |
parent | 6d42e3d56a6851fa2463ef45226fd027867d74a7 (diff) | |
download | libnitrokey-fb37116ea77f7961b12b1e289c3d48e6e517ea88.tar.gz libnitrokey-fb37116ea77f7961b12b1e289c3d48e6e517ea88.tar.bz2 |
Write to TOTP slot
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.h')
-rw-r--r-- | NK_C_API.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ extern const char * NK_get_totp_slot_name(uint8_t slot_number); extern const char * NK_get_hotp_slot_name(uint8_t slot_number); extern int NK_erase_slot(uint8_t slot_number); extern int NK_write_hotp_slot(uint8_t slot_number, const char *slot_name, const char *secret, uint8_t hotp_counter, const char *temporary_password); -extern int NK_write_totp_slot(uint8_t slot_number, const char *secret, uint16_t time_window); +extern int NK_write_totp_slot(uint8_t slot_number, const char *slot_name, const char *secret, uint16_t time_window, const char *temporary_password); extern uint32_t NK_get_hotp_code(uint8_t slot_number); extern uint32_t NK_get_totp_code(uint8_t slot_number, uint64_t challenge, uint64_t last_totp_time, uint8_t last_interval); } |