summaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-25 18:32:59 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commitb37e5990aa409689e5d6162776583616ac03e0ac (patch)
treeefb9585d220fa737aab90a35541b76bddfb6a09d /NitrokeyManager.cc
parent689f38b7a4bbb823b8d43bab8357a32558d3775c (diff)
downloadlibnitrokey-b37e5990aa409689e5d6162776583616ac03e0ac.tar.gz
libnitrokey-b37e5990aa409689e5d6162776583616ac03e0ac.tar.bz2
Enabling password safe and password safe status (latter not working yet)
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 2b46927..fd2189e 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -213,5 +213,15 @@ namespace nitrokey{
ChangeAdminPin::CommandTransaction::run(*device, p);
}
+ void NitrokeyManager::enable_password_safe(const char *user_pin) {
+ auto p = get_payload<EnablePasswordSafe>();
+ strcpyT(p.password, user_pin);
+ EnablePasswordSafe::CommandTransaction::run(*device, p);
+ }
+
+ void NitrokeyManager::get_password_safe_slot_status() {
+ GetPasswordSafeSlotStatus::CommandTransaction::run(*device);
+ }
+
} \ No newline at end of file