summaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-06-23 11:47:10 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-06-23 11:47:10 +0200
commitce0a70318adf6f68cf99c3fcb3c030161e2addd2 (patch)
tree9945dd8130ed8d78e499ed6d8fe817b4486a35f5 /NK_C_API.cc
parentee6c9c61b93fae7e041abb19e42134d3a831a846 (diff)
downloadlibnitrokey-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.cc7
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
}