Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[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 /* $DragonFly: src/usr.sbin/pkg_install/sign/Attic/pgp.h,v 1.2 2003/06/17 04:29:59 dillon Exp $ */
3 /* $OpenBSD: pgp.h,v 1.2 1999/10/04 21:46:28 espie Exp $ */
4 /* Estimate size of pgp signature */
5 #define MAXPGPSIGNSIZE  1024
6
7 #ifndef PGP
8 #define PGP "/usr/local/bin/pgp"
9 #endif
10
11 struct mygzip_header;
12 struct signature;
13
14 extern void *new_pgp_checker __P((struct mygzip_header *h, \
15         struct signature *sign, const char *userid, char *envp[], \
16         const char *filename));
17
18 extern void pgp_add __P((void *arg, const char *buffer, \
19         size_t length));
20
21 extern int pgp_sign_ok __P((void *arg));
22
23 extern void handle_pgp_passphrase __P((void));
24
25 extern int retrieve_pgp_signature __P((const char *filename, \
26 struct signature **sign, const char *userid, char *envp[]));