aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-04-07 12:55:01 +0530
committersinanmohd <sinan@sinanmohd.com>2024-04-07 12:56:31 +0530
commite500ce0e53cb059dae35016abd8e649c2ba6f0f2 (patch)
tree0445c3d3a49772fbfa26ed42f2cea53f7e1673be /include
parent8ab1e3c5da78c05b8edf48d44e6fde046d50e582 (diff)
pass/gen: init
Diffstat (limited to 'include')
-rw-r--r--include/libnpass/libnpass.h8
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);