aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-28 12:24:45 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commit08fa8c559b42fb07bdadd62369802c348b896607 (patch)
tree7a94fe1810d7468ccc5b4d82ecbc549dd0b6c933 /NK_C_API.cc
parentbdb25a0c1feb5709d718f408d6c839dbc9b55738 (diff)
downloadlibnitrokey-08fa8c559b42fb07bdadd62369802c348b896607.tar.gz
libnitrokey-08fa8c559b42fb07bdadd62369802c348b896607.tar.bz2
Choose device model during connection
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index fac8a3c..e6151fc 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -68,10 +68,10 @@ extern uint8_t NK_get_last_command_status(){
return _copy;
}
-extern int NK_login(const char *admin_pin, const char *temporary_password) {
+extern int NK_login(const char *admin_pin, const char *temporary_password, const char *device_model) {
auto m = NitrokeyManager::instance();
try {
- m->connect();
+ m->connect(device_model);
m->first_authenticate(admin_pin, temporary_password);
NK_last_command_status = 0;
}