diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-19 12:06:00 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-19 14:41:16 +0200 |
commit | 2ca5deb106ede1ffd236f153abae8fe6e3b0401c (patch) | |
tree | 03ad86918b55e16c3ba00a8f3648cad10a526228 /NK_C_API.h | |
parent | 2c749223714c4d7815ca6b2d1888169a864a0fec (diff) | |
download | libnitrokey-2ca5deb106ede1ffd236f153abae8fe6e3b0401c.tar.gz libnitrokey-2ca5deb106ede1ffd236f153abae8fe6e3b0401c.tar.bz2 |
Add function reading HOTP slot details
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.h')
-rw-r--r-- | NK_C_API.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -995,6 +995,18 @@ extern "C" { */ NK_C_API int NK_change_firmware_password_pro(const char *current_firmware_password, const char *new_firmware_password); + +// as in ReadSlot::ResponsePayload +struct ReadSlot_t { + uint8_t slot_name[15]; + uint8_t _slot_config; + uint8_t slot_token_id[13]; + uint64_t slot_counter; +}; + + +NK_C_API int NK_read_HOTP_slot(const uint8_t slot_num, struct ReadSlot_t* out); + #ifdef __cplusplus } #endif |