diff options
Diffstat (limited to 'include/libnpass/libnpass.h')
-rw-r--r-- | include/libnpass/libnpass.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <stdio.h> +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); |