aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-06-23 11:52:30 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-06-23 11:52:30 +0200
commit5d4003a6053667ec4ef75a5b39e38cf3f305cbea (patch)
treeff98294621521b3ab3bb6b72f23338b7dbadfd11 /NK_C_API.cc
parent7c06025c9b9c28c642c8acc8bab7cbc974cd5575 (diff)
parentce0a70318adf6f68cf99c3fcb3c030161e2addd2 (diff)
downloadlibnitrokey-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.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
}