diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-06-23 11:47:10 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-06-23 11:47:10 +0200 |
commit | ce0a70318adf6f68cf99c3fcb3c030161e2addd2 (patch) | |
tree | 9945dd8130ed8d78e499ed6d8fe817b4486a35f5 /NK_C_API.cc | |
parent | ee6c9c61b93fae7e041abb19e42134d3a831a846 (diff) | |
download | libnitrokey-ce0a70318adf6f68cf99c3fcb3c030161e2addd2.tar.gz libnitrokey-ce0a70318adf6f68cf99c3fcb3c030161e2addd2.tar.bz2 |
Handle WINK command
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index 01963fc..103f34d 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -686,7 +686,12 @@ extern "C" { }); } - + NK_C_API int NK_wink() { + auto m = NitrokeyManager::instance(); + return get_without_result([&]() { + return m->wink(); + }); + } #ifdef __cplusplus } |