From e500ce0e53cb059dae35016abd8e649c2ba6f0f2 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 7 Apr 2024 12:55:01 +0530 Subject: pass/gen: init --- include/libnpass/libnpass.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libnpass') diff --git a/include/libnpass/libnpass.h b/include/libnpass/libnpass.h index d4b7fb4..d7eef75 100644 --- a/include/libnpass/libnpass.h +++ b/include/libnpass/libnpass.h @@ -1,7 +1,15 @@ #include +typedef enum { + PASS_GEN_DIGIT = 0, + PASS_GEN_ALPHA = 1, + PASS_GEN_PRINT = 2, +} pass_gen_t; + int pass_init(const char *fpr); int pass_cat(FILE *out, const char *path); int pass_add(const char *path, const char *pass, size_t n); int pass_rm(const char *path); + ssize_t pass_getpass(char **lineptr, size_t *n, FILE *stream); +int pass_gen(pass_gen_t gen, char *pass, size_t n); -- cgit v1.2.3