Remove __P macros from src/usr.bin and src/usr.sbin.
[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.3 2003/11/03 19:31:39 eirikn 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(struct mygzip_header *h, \
15         struct signature *sign, const char *userid, char *envp[], \
16         const char *filename);
17
18 extern void pgp_add(void *arg, const char *buffer, \
19         size_t length);
20
21 extern int pgp_sign_ok(void *arg);
22
23 extern void handle_pgp_passphrase(void);
24
25 extern int retrieve_pgp_signature(const char *filename, \
26 struct signature **sign, const char *userid, char *envp[]);