aboutsummaryrefslogtreecommitdiffstats
path: root/src/implementation.h
diff options
context:
space:
mode:
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);