aboutsummaryrefslogblamecommitdiff
path: root/include/libnpass/libnpass.h
blob: c5e756f1e1d630c0fd4cdd48a28771622ff7f4f1 (plain) (tree)
1
2
3
4
5
6
7
8
9

                  

                           
                           


                           
                               
                                          
                                                           
                              
 
                                                              
                                                   
#include <stdio.h>

typedef enum {
	PASS_GEN_DIGIT = 0,
	PASS_GEN_ALNUM = 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);