2 * Copyright notice from original mutt:
3 * Copyright (C) 2004 g10 Code GmbH
5 * This file is part of mutt-ng, see http://www.muttng.org/.
6 * It's licensed under the GNU General Public License,
7 * please see the file GPL in the top level source directory.
13 #include <lib-crypt/crypt.h>
15 void pgp_gpgme_init (void);
16 void smime_gpgme_init (void);
18 char *pgp_gpgme_findkeys (address_t * to, address_t * cc, address_t * bcc);
19 char *smime_gpgme_findkeys (address_t * to, address_t * cc, address_t * bcc);
21 BODY *pgp_gpgme_encrypt_message (BODY * a, char *keylist, int sign);
22 BODY *smime_gpgme_build_smime_entity (BODY * a, char *keylist);
24 int pgp_gpgme_decrypt_mime (FILE * fpin, FILE ** fpout, BODY * b,
26 int smime_gpgme_decrypt_mime (FILE * fpin, FILE ** fpout, BODY * b,
29 int pgp_gpgme_check_traditional (FILE * fp, BODY * b, int tagged_only);
31 int pgp_gpgme_application_handler (BODY * m, STATE * s);
32 int smime_gpgme_application_handler (BODY * a, STATE * s);
33 int pgp_gpgme_encrypted_handler (BODY * a, STATE * s);
35 BODY *pgp_gpgme_make_key_attachment (char *tempf);
37 BODY *pgp_gpgme_sign_message (BODY * a);
38 BODY *smime_gpgme_sign_message (BODY * a);
40 int pgp_gpgme_verify_one (BODY * sigbdy, STATE * s, const char *tempfile);
41 int smime_gpgme_verify_one (BODY * sigbdy, STATE * s, const char *tempfile);
43 int smime_gpgme_verify_sender (HEADER* h);
45 int pgp_gpgme_send_menu (HEADER * msg, int *redraw);
46 int smime_gpgme_send_menu (HEADER * msg, int *redraw);
47 void pgp_gpgme_invoke_import(const char *fname);
48 void pgp_gpgme_from_attachment_list (FILE * fp, int tag, BODY * top);