aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-26 11:36:04 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commit39b7c99bbd00c0bc4906939ceefb724a3d9ddc35 (patch)
tree16e13a656aeeccb1b14193c33e8728462d32c8d0 /NitrokeyManager.cc
parent8a938be4ffa97490d89206cc1fd079a057cfc65c (diff)
downloadlibnitrokey-39b7c99bbd00c0bc4906939ceefb724a3d9ddc35.tar.gz
libnitrokey-39b7c99bbd00c0bc4906939ceefb724a3d9ddc35.tar.bz2
Handle locking device
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index d684853..15f09b8 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -232,5 +232,9 @@ namespace nitrokey{
return response.password_retry_count;
}
+ void NitrokeyManager::lock_device() {
+ LockDevice::CommandTransaction::run(*device);
+ }
+
} \ No newline at end of file