diff options
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index 7d0a10e..396171c 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -125,6 +125,13 @@ extern "C" { return _copy; } + NK_C_API int NK_login_with_serial(const char *serial) { + auto m = NitrokeyManager::instance(); + return get_with_result([&]() { + return m->connect_with_serial(serial); + }); + } + NK_C_API int NK_login(const char *device_model) { auto m = NitrokeyManager::instance(); try { |