aboutsummaryrefslogtreecommitdiffstats
path: root/src/implementation.h
blob: 15fc56d2ff8d74901d041735747c7087413590c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef IMPLEMENTATION_H
#define IMPLEMENTATION_H

#define GPG_PUBLICKEY_MAXLENGTH 1024

#define errprint(RET, ...) \
	do { \
		fprintf(stderr, "Error: " __VA_ARGS__); \
		return RET; \
	} while(0)

void copy_outside(char *password);
int check_sneaky_paths(const char *path);
char *get_pubkey();
char *get_password(const char *path);
void visible_enter(int status);
int insert_pass(const char *path, const char *password);
char *get_input(int minlen, int maxlen);
void gen_password(char *dest, int amount);
int overwrite_answer(const char *path);

#endif