aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);