summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/sign/pgp.h
blob: 99476f2f681147a1603212f41c6c1b164026ebb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* $FreeBSD$ */
/* $OpenBSD: pgp.h,v 1.2 1999/10/04 21:46:28 espie 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 __P((struct mygzip_header *h, \
	struct signature *sign, const char *userid, char *envp[], \
	const char *filename));

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

extern int pgp_sign_ok __P((void *arg));

extern void handle_pgp_passphrase __P((void));

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