aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-03-07 16:57:47 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:52 +0100
commit7132b01a499568c21a7ec64b9c58672541bbb7f6 (patch)
tree6b2012aa387f872943cffdb7202617bcbfd7c776 /NitrokeyManager.cc
parent257062b9a5130cf25dfd26d4ec93880abde1c9ce (diff)
downloadlibnitrokey-7132b01a499568c21a7ec64b9c58672541bbb7f6.tar.gz
libnitrokey-7132b01a499568c21a7ec64b9c58672541bbb7f6.tar.bz2
Handle enabling update mode on Storage device
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 4a4f1d9..630a4e4 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -735,6 +735,10 @@ namespace nitrokey{
misc::execute_password_command<stick20::ExportFirmware>(device, admin_pin);
}
+ void NitrokeyManager::enable_firmware_update(const char* firmware_pin) {
+ misc::execute_password_command<stick20::EnableFirmwareUpdate>(device, firmware_pin);
+ }
+
void NitrokeyManager::clear_new_sd_card_warning(const char* admin_pin) {
misc::execute_password_command<stick20::SendClearNewSdCardFound>(device, admin_pin);
}