diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-06-23 11:52:30 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-06-23 11:52:30 +0200 |
commit | 5d4003a6053667ec4ef75a5b39e38cf3f305cbea (patch) | |
tree | ff98294621521b3ab3bb6b72f23338b7dbadfd11 /NK_C_API.cc | |
parent | 7c06025c9b9c28c642c8acc8bab7cbc974cd5575 (diff) | |
parent | ce0a70318adf6f68cf99c3fcb3c030161e2addd2 (diff) | |
download | libnitrokey-5d4003a6053667ec4ef75a5b39e38cf3f305cbea.tar.gz libnitrokey-5d4003a6053667ec4ef75a5b39e38cf3f305cbea.tar.bz2 |
Merge branch 'handle_wink_command'
Handle WINK command, introduced in Storage v0.52
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 } |