summaryrefslogtreecommitdiff
path: root/NK_C_API.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-12-12 17:41:01 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-02-23 15:42:37 +0100
commit66a67b7b69b9cb43a810449761c78883e9e11bd6 (patch)
tree2436627cbb2aef9d187d554d6e5bda2388df247d /NK_C_API.h
parent025774fc3759683a8ec0f6b1598b1e34b550e6d5 (diff)
downloadlibnitrokey-66a67b7b69b9cb43a810449761c78883e9e11bd6.tar.gz
libnitrokey-66a67b7b69b9cb43a810449761c78883e9e11bd6.tar.bz2
C API for Encrypted volume ro/rw switch
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
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