2 * Copyright notice from original mutt:
3 * Copyright (C) 1996,1997 Michael R. Elkins <me@mutt.org>
4 * Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
5 * Copyright (C) 2004 g10 Code GmbH
7 * This file is part of mutt-ng, see http://www.muttng.org/.
8 * It's licensed under the GNU General Public License,
9 * please see the file GPL in the top level source directory.
18 int pgp_use_gpg_agent (void);
20 int pgp_check_traditional (FILE *, BODY *, int);
21 BODY *pgp_decrypt_part (BODY *, STATE *, FILE *, BODY *);
22 BODY *pgp_make_key_attachment (char *);
23 const char *pgp_micalg (const char *fname);
25 char *_pgp_keyid (pgp_key_t);
26 char *pgp_keyid (pgp_key_t);
29 int mutt_check_pgp (HEADER * h);
31 int pgp_decrypt_mime (FILE *, FILE **, BODY *, BODY **);
33 /* int pgp_string_matches_hint (const char *s, string_list_t * hints); */
35 /* pgp_key_t gpg_get_candidates (struct pgp_vinfo *, pgp_ring_t, string_list_t *); */
36 pgp_key_t pgp_ask_for_key (char *, char *, short, pgp_ring_t);
37 pgp_key_t pgp_get_candidates (pgp_ring_t, string_list_t *);
38 pgp_key_t pgp_getkeybyaddr (address_t *, short, pgp_ring_t);
39 pgp_key_t pgp_getkeybystr (const char *, short, pgp_ring_t);
41 char *pgp_findKeys (address_t * to, address_t * cc, address_t * bcc);
43 void pgp_forget_passphrase (void);
44 int pgp_application_pgp_handler (BODY *, STATE *);
45 int pgp_encrypted_handler (BODY *, STATE *);
46 void pgp_extract_keys_from_attachment_list (FILE * fp, int tag, BODY * top);
47 void pgp_void_passphrase (void);
48 int pgp_valid_passphrase (void);
51 /* The PGP invocation interface - not really beautiful. */
53 pid_t pgp_invoke_decode (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr,
54 int pgpinfd, int pgpoutfd, int pgperrfd,
55 const char *fname, short need_passphrase);
56 pid_t pgp_invoke_verify (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr,
57 int pgpinfd, int pgpoutfd, int pgperrfd,
58 const char *fname, const char *sig_fname);
59 pid_t pgp_invoke_decrypt (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr,
60 int pgpinfd, int pgpoutfd, int pgperrfd,
62 pid_t pgp_invoke_sign (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr,
63 int pgpinfd, int pgpoutfd, int pgperrfd,
65 pid_t pgp_invoke_encrypt (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr,
66 int pgpinfd, int pgpoutfd, int pgperrfd,
67 const char *fname, const char *uids, int sign);
68 pid_t pgp_invoke_export (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr,
69 int pgpinfd, int pgpoutfd, int pgperrfd,
71 pid_t pgp_invoke_verify_key (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr,
72 int pgpinfd, int pgpoutfd, int pgperrfd,
74 pid_t pgp_invoke_list_keys (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr,
75 int pgpinfd, int pgpoutfd, int pgperrfd,
76 pgp_ring_t keyring, string_list_t * hints);
77 pid_t pgp_invoke_traditional (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr,
78 int pgpinfd, int pgpoutfd, int pgperrfd,
79 const char *fname, const char *uids, int flags);
82 void pgp_invoke_import (const char *fname);
83 void pgp_invoke_getkeys (address_t *);
87 int pgp_verify_one (BODY *, STATE *, const char *);
88 BODY *pgp_traditional_encryptsign (BODY *, int, char *);
89 BODY *pgp_encrypt_message (BODY *, char *, int);
90 BODY *pgp_sign_message (BODY *);
92 int pgp_send_menu (HEADER * msg, int *redraw);