summaryrefslogtreecommitdiff
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
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>
-rw-r--r--NitrokeyManager.cc4
-rw-r--r--include/NitrokeyManager.h1
2 files changed, 5 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);
}
diff --git a/include/NitrokeyManager.h b/include/NitrokeyManager.h
index d49941e..71ac6fa 100644
--- a/include/NitrokeyManager.h
+++ b/include/NitrokeyManager.h
@@ -101,6 +101,7 @@ namespace nitrokey {
void set_unencrypted_read_write(const char *user_pin);
void export_firmware(const char *admin_pin);
+ void enable_firmware_update(const char *firmware_pin);
void clear_new_sd_card_warning(const char *admin_pin);