Initial import from FreeBSD RELENG_4:
[dragonfly.git] / usr.sbin / pkg_install / sign / pgp.h
1 /* $FreeBSD: src/usr.sbin/pkg_install/sign/pgp.h,v 1.1.2.1 2001/03/05 03:43:53 wes Exp $ */
2 /* $OpenBSD: pgp.h,v 1.2 1999/10/04 21:46:28 espie Exp $ */
3 /* Estimate size of pgp signature */
4 #define MAXPGPSIGNSIZE  1024
5
6 #ifndef PGP
7 #define PGP "/usr/local/bin/pgp"
8 #endif
9
10 struct mygzip_header;
11 struct signature;
12
13 extern void *new_pgp_checker __P((struct mygzip_header *h, \
14         struct signature *sign, const char *userid, char *envp[], \
15         const char *filename));
16
17 extern void pgp_add __P((void *arg, const char *buffer, \
18         size_t length));
19
20 extern int pgp_sign_ok __P((void *arg));
21
22 extern void handle_pgp_passphrase __P((void));
23
24 extern int retrieve_pgp_signature __P((const char *filename, \
25 struct signature **sign, const char *userid, char *envp[]));