aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
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