aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-23 17:18:20 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commit93803ac591d0e0e0d05d5a552cd2d5fb4a62fb19 (patch)
tree65c4f57618fd078d2a5de084deb6bac5eec0594b /NK_C_API.h
parent1b03ab0377bfd106225e16bbd2baee3048b266b4 (diff)
downloadlibnitrokey-93803ac591d0e0e0d05d5a552cd2d5fb4a62fb19.tar.gz
libnitrokey-93803ac591d0e0e0d05d5a552cd2d5fb4a62fb19.tar.bz2
Handle errors with exceptions
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.h')
-rw-r--r--NK_C_API.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/NK_C_API.h b/NK_C_API.h
index e0d0ede..0c91095 100644
--- a/NK_C_API.h
+++ b/NK_C_API.h
@@ -21,7 +21,8 @@ extern int NK_write_totp_slot(uint8_t slot_number, const char *slot_name, const
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);
extern int NK_totp_set_time(uint64_t time);
-extern int NK_totp_mark_time();
+extern int NK_totp_get_time();
+extern uint8_t NK_get_last_command_status();
}