summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/sign/pgp.h
blob: e179a26afa5560a217b7501a93a4a892041ffcc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* $OpenBSD: pgp.h,v 1.4 2002/02/17 19:42:38 millert Exp $ */
/* Estimate size of pgp signature */
#define MAXPGPSIGNSIZE	1024

#ifndef PGP
#define PGP "/usr/local/bin/pgp"
#endif

struct mygzip_header;
struct signature;

extern void *new_pgp_checker(struct mygzip_header *h, \
	struct signature *sign, const char *userid, char *envp[], \
	const char *filename);

extern void pgp_add(void *arg, const char *buffer, size_t length);

extern int pgp_sign_ok(void *arg);

extern void handle_pgp_passphrase(void);

extern int retrieve_pgp_signature(const char *filename, \
	struct signature **sign, const char *userid, char *envp[]);