aboutsummaryrefslogtreecommitdiffstats
path: root/src/implementation.h
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2020-10-31 17:45:29 +0000
committerJoursoir <chat@joursoir.net>2020-10-31 17:45:29 +0000
commit64ef51a8ce6bc148ba493e350e2cac4cba470201 (patch)
tree4418c4133b16341975cfe4d29df8da6ce27abcff /src/implementation.h
parent38a3be4a3eeacec75a534fef6951b9484b4d7098 (diff)
downloadlock-password-64ef51a8ce6bc148ba493e350e2cac4cba470201.tar.gz
lock-password-64ef51a8ce6bc148ba493e350e2cac4cba470201.tar.bz2
lock-password-64ef51a8ce6bc148ba493e350e2cac4cba470201.zip
some features:
remake README.md for new code architecture; add help command; add man page;
Diffstat (limited to 'src/implementation.h')
-rw-r--r--src/implementation.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/implementation.h b/src/implementation.h
new file mode 100644
index 0000000..f41cc4a
--- /dev/null
+++ b/src/implementation.h
@@ -0,0 +1,17 @@
+#ifndef IMPLEMENTATION_H
+#define IMPLEMENTATION_H
+
+#define GPG_PUBLICKEY_MAXLENGTH 1025 // +1 for '\0'
+
+void checkForbiddenPaths(char *path);
+char *getGPGKey(char *dest, size_t size);
+char* getPassword(char *path_pass, char *password, size_t size, int flag_copy);
+void nonvisibleEnter(int status);
+void insertPass(char *add_path, char *password, int flag_copy);
+char *typePass(char *text, char *dest, int minlen, int maxlen);
+int userEnterPassword(int minlen, int maxlen, char *path_insert, int flag_echo, int flag_copy);
+char *generatePassword(char *dest, int amount, int max_len);
+unsigned long hash(char *str);
+int getOverwriteAnswer(char *path);
+
+#endif \ No newline at end of file