From 689f38b7a4bbb823b8d43bab8357a32558d3775c Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 25 Jul 2016 18:32:01 +0200 Subject: Change fields naming in login function Signed-off-by: Szczepan Zalega --- NK_C_API.cc | 4 ++-- NK_C_API.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NK_C_API.cc b/NK_C_API.cc index 5571f0d..2531982 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -13,11 +13,11 @@ extern uint8_t NK_get_last_command_status(){ return _copy; } -extern int NK_login(const char *pin, const char *temporary_password) { +extern int NK_login(const char *admin_pin, const char *temporary_password) { auto m = NitrokeyManager::instance(); try { m->connect(); - m->authorize(pin, temporary_password); + m->authorize(admin_pin, temporary_password); } catch (CommandFailedException & commandFailedException){ NK_last_command_status = commandFailedException.last_command_status; diff --git a/NK_C_API.h b/NK_C_API.h index a692a26..aef6182 100644 --- a/NK_C_API.h +++ b/NK_C_API.h @@ -10,7 +10,7 @@ extern "C" { //Make sure each function's declaration is in one line (for automatic python declaration processing) extern void NK_set_debug(bool state); -extern int NK_login(const char *pin, const char *temporary_password); +extern int NK_login(const char *admin_pin, const char *temporary_password); extern int NK_logout(); extern const char * NK_status(); extern const char * NK_get_totp_slot_name(uint8_t slot_number); -- cgit v1.2.3