aboutsummaryrefslogtreecommitdiff
path: root/include/libnpass/libnpass.h
blob: d7eef754cfa115383cfc09028291c887bf5184ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);