aboutsummaryrefslogtreecommitdiffstats
path: root/src/implementation.h
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-02-25 13:06:35 +0000
committerJoursoir <chat@joursoir.net>2021-02-25 13:06:35 +0000
commit9824208d05a2ba476cbb3f583fa2df3080a00967 (patch)
tree1518af407599d7287f9a03ef79675250b1cf35d4 /src/implementation.h
parent7cd03c4bbaba01e6b3c46ef5eb61825b34e60643 (diff)
downloadlock-password-9824208d05a2ba476cbb3f583fa2df3080a00967.tar.gz
lock-password-9824208d05a2ba476cbb3f583fa2df3080a00967.tar.bz2
lock-password-9824208d05a2ba476cbb3f583fa2df3080a00967.zip
add recursive mkdir, improve error handling
Diffstat (limited to 'src/implementation.h')
-rw-r--r--src/implementation.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/implementation.h b/src/implementation.h
index 52f4dc7..bcb6985 100644
--- a/src/implementation.h
+++ b/src/implementation.h
@@ -1,15 +1,19 @@
#ifndef IMPLEMENTATION_H
#define IMPLEMENTATION_H
-#define GPG_PUBLICKEY_MAXLENGTH 1025 // +1 for '\0'
+#define GPG_PUBLICKEY_MAXLENGTH 1024
-void checkForbiddenPaths(char *path);
-char *getGPGKey(char *dest, size_t size);
+enum asnwers {
+ OW_YES = 0,
+ OW_NO = 1,
+};
+
+int checkForbiddenPaths(char *path);
+char *getGPGKey();
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);
+int insertPass(char *path, char *password, int flag_copy);
+char *getInput(int minlen, int maxlen);
char *generatePassword(char *dest, int amount);
int getOverwriteAnswer(char *path);