diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-07-25 18:32:01 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 13:54:57 +0200 |
commit | 689f38b7a4bbb823b8d43bab8357a32558d3775c (patch) | |
tree | 1aa4de929d14a71731fd44ef4f72d3f2c15a3dc0 /NK_C_API.cc | |
parent | 9413952f3c7d30bb462d4f1a211a3b0c2391f51e (diff) | |
download | libnitrokey-689f38b7a4bbb823b8d43bab8357a32558d3775c.tar.gz libnitrokey-689f38b7a4bbb823b8d43bab8357a32558d3775c.tar.bz2 |
Change fields naming in login function
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 4 |
1 files changed, 2 insertions, 2 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; |