aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.h
diff options
context:
space:
mode:
Diffstat (limited to 'NK_C_API.h')
-rw-r--r--NK_C_API.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/NK_C_API.h b/NK_C_API.h
index 0131caa..bd7130f 100644
--- a/NK_C_API.h
+++ b/NK_C_API.h
@@ -445,6 +445,29 @@ extern "C" {
NK_C_API int NK_set_unencrypted_read_write(const char* user_pin);
/**
+ * Make encrypted volume read-only.
+ * Device hides encrypted volume for a second therefore make sure
+ * buffers are flushed before running.
+ * Storage only
+ * @param admin_pin 20 characters
+ * @return command processing error code
+ */
+ NK_C_API int NK_set_encrypted_read_only(const char* admin_pin);
+
+ /**
+ * Make encrypted volume read-write.
+ * Device hides encrypted volume for a second therefore make sure
+ * buffers are flushed before running.
+ * Storage only
+ * @param admin_pin 20 characters
+ * @return command processing error code
+ */
+ NK_C_API int NK_set_encrypted_read_write(const char* admin_pin);
+
+
+
+
+ /**
* Exports device's firmware to unencrypted volume.
* Storage only
* @param admin_pin 20 characters