diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-02-03 17:23:44 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:42 +0100 |
commit | db76ae5299f3650385f66e4c596b18fd54250d38 (patch) | |
tree | ed61a9ec409ff1431ed49b7ddb7dfd40216d96d5 /NitrokeyManager.cc | |
parent | 767e24572db2bbc4b9837c32ffc0bab4e1ad0b81 (diff) | |
download | libnitrokey-db76ae5299f3650385f66e4c596b18fd54250d38.tar.gz libnitrokey-db76ae5299f3650385f66e4c596b18fd54250d38.tar.bz2 |
Allow users to lock encrypted volumes specifically
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r-- | NitrokeyManager.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index 65b3c68..74a6ecf 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -766,4 +766,12 @@ namespace nitrokey{ return get_OTP_slot_data(get_internal_slot_number_for_hotp(slot_number)); } + void NitrokeyManager::lock_encrypted_volume() { + misc::execute_password_command<stick20::DisableEncryptedPartition>(device, ""); + } + + void NitrokeyManager::lock_hidden_volume() { + misc::execute_password_command<stick20::DisableHiddenEncryptedPartition>(device, ""); + } + } |