diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-07-26 21:09:16 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 13:54:57 +0200 |
commit | 7f2bea1869529fb3fa53d809260e2713b43a1fd8 (patch) | |
tree | 9ca77a4f70fc7a27304c56399169e137157aeebc /NitrokeyManager.cc | |
parent | f6bd34b262b66fde862aa3d95c339f5c587156eb (diff) | |
download | libnitrokey-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.cc | 6 |
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 |