aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-28 12:25:36 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:58 +0200
commit9550d13642b6ef374d3807357b2f7a26bd0cad59 (patch)
treedfc33a2bd5b951b72ba630e1398fa85e295ce503 /NK_C_API.cc
parent08fa8c559b42fb07bdadd62369802c348b896607 (diff)
downloadlibnitrokey-9550d13642b6ef374d3807357b2f7a26bd0cad59.tar.gz
libnitrokey-9550d13642b6ef374d3807357b2f7a26bd0cad59.tar.bz2
Do not authenticate on login with admin credentials
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index e6151fc..81a18b5 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -68,11 +68,10 @@ extern uint8_t NK_get_last_command_status(){
return _copy;
}
-extern int NK_login(const char *admin_pin, const char *temporary_password, const char *device_model) {
+extern int NK_login(const char *device_model) {
auto m = NitrokeyManager::instance();
try {
m->connect(device_model);
- m->first_authenticate(admin_pin, temporary_password);
NK_last_command_status = 0;
}
catch (CommandFailedException & commandFailedException){