aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-27 06:16:00 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commit33344655d519b351d17d4f166dba406d1ab79e8e (patch)
tree54b4d3e303a502bc45947f5d90173efdc2176f1a /NK_C_API.h
parentf5b5339a0cd272b3be33013f01e14f5bcc6e5aa8 (diff)
downloadlibnitrokey-33344655d519b351d17d4f166dba406d1ab79e8e.tar.gz
libnitrokey-33344655d519b351d17d4f166dba406d1ab79e8e.tar.bz2
Handle misc functions: factory reset, build aes key, unlock user password (not yet tested)
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, 3 insertions, 0 deletions
diff --git a/NK_C_API.h b/NK_C_API.h
index 26f99f9..9dc1bce 100644
--- a/NK_C_API.h
+++ b/NK_C_API.h
@@ -17,6 +17,9 @@ extern uint8_t NK_get_last_command_status();
extern int NK_lock_device();
extern int NK_user_authenticate(const char* user_password, const char* user_temporary_password);
extern int NK_first_authenticate(const char* admin_password, const char* admin_temporary_password);
+extern int NK_factory_reset(const char* admin_password);
+extern int NK_build_aes_key(const char* admin_password);
+extern int NK_unlock_user_password(const char* admin_password);
//otp
extern const char * NK_get_totp_slot_name(uint8_t slot_number);
extern const char * NK_get_hotp_slot_name(uint8_t slot_number);