summaryrefslogtreecommitdiff
path: root/include/password-buffer.h
diff options
context:
space:
mode:
authorRobin Ebert <ebertrobin2002@gmail.com>2022-05-30 11:50:30 +0200
committerSimon Ser <contact@emersion.fr>2022-06-15 10:49:32 +0200
commitbdeb891378bfcb2dc79de41cfeb6a62807d09b20 (patch)
treea9eef0cdb2d2fba56404291ab25a0ce48402b79b /include/password-buffer.h
parentfad5bc2f615bcee37b653887af0aebb334ec94b5 (diff)
Use mlock for password buffer
Diffstat (limited to 'include/password-buffer.h')
-rw-r--r--include/password-buffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/password-buffer.h b/include/password-buffer.h
new file mode 100644
index 0000000..74f35aa
--- /dev/null
+++ b/include/password-buffer.h
@@ -0,0 +1,9 @@
+#ifndef _SWAY_PASSWORD_BUFFER_H
+#define _SWAY_PASSWORD_BUFFER_H
+
+#include <stddef.h>
+
+char *password_buffer_create(size_t size);
+void password_buffer_destroy(char *buffer, size_t size);
+
+#endif