From 7f2bea1869529fb3fa53d809260e2713b43a1fd8 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 26 Jul 2016 21:09:16 +0200 Subject: Erase password safe slot Signed-off-by: Szczepan Zalega --- NitrokeyManager.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NitrokeyManager.cc') 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(); + p.slot_number = slot_number; + ErasePasswordSafeSlot::CommandTransaction::run(*device, p); + } + } \ No newline at end of file -- cgit v1.2.3