More minor IPI work.
[dragonfly/vkernel-mp.git] / usr.sbin / pkg_install / sign / pgp.h
blob13a1d7405127b03f248f2a3f6c2a89e497cf72f0
1 /*
2 * $OpenBSD: pgp.h,v 1.2 1999/10/04 21:46:28 espie Exp $
3 * $FreeBSD: src/usr.sbin/pkg_install/sign/pgp.h,v 1.1 2001/02/06 06:46:42 wes Exp $
4 * $DragonFly: src/usr.sbin/pkg_install/sign/pgp.h,v 1.4 2004/07/30 06:46:14 dillon Exp $
5 */
6 /* Estimate size of pgp signature */
7 #define MAXPGPSIGNSIZE 1024
9 #ifndef PGP
10 #define PGP "/usr/local/bin/pgp"
11 #endif
13 struct mygzip_header;
14 struct signature;
16 extern void *new_pgp_checker (struct mygzip_header *h, \
17 struct signature *sign, const char *userid, char *envp[], \
18 const char *filename);
20 extern void pgp_add (void *arg, const char *buffer, \
21 size_t length);
23 extern int pgp_sign_ok (void *arg);
25 extern void handle_pgp_passphrase (void);
27 extern int retrieve_pgp_signature (const char *filename, \
28 struct signature **sign, const char *userid, char *envp[]);