summaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-26 21:09:16 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commit7f2bea1869529fb3fa53d809260e2713b43a1fd8 (patch)
tree9ca77a4f70fc7a27304c56399169e137157aeebc /NitrokeyManager.cc
parentf6bd34b262b66fde862aa3d95c339f5c587156eb (diff)
downloadlibnitrokey-7f2bea1869529fb3fa53d809260e2713b43a1fd8.tar.gz
libnitrokey-7f2bea1869529fb3fa53d809260e2713b43a1fd8.tar.bz2
Erase password safe slot
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 7ffee51..018557c 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -277,4 +277,10 @@ namespace nitrokey{
SetPasswordSafeSlotData2::CommandTransaction::run(*device, p2);
}
+ void NitrokeyManager::erase_password_safe_slot(uint8_t slot_number) {
+ auto p = get_payload<ErasePasswordSafeSlot>();
+ p.slot_number = slot_number;
+ ErasePasswordSafeSlot::CommandTransaction::run(*device, p);
+ }
+
} \ No newline at end of file