simplifications
[apps/madmutt.git] / crypt-gpgme.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 2004 g10 Code GmbH
4  *
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.
8  */
9
10 #ifndef CRYPT_GPGME_H
11 #define CRYPT_GPGME_H
12
13 #include <lib-crypt/crypt.h>
14
15 void pgp_gpgme_init (void);
16 void smime_gpgme_init (void);
17
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);
20
21 BODY *pgp_gpgme_encrypt_message (BODY * a, char *keylist, int sign);
22 BODY *smime_gpgme_build_smime_entity (BODY * a, char *keylist);
23
24 int pgp_gpgme_decrypt_mime (FILE * fpin, FILE ** fpout, BODY * b,
25                             BODY ** cur);
26 int smime_gpgme_decrypt_mime (FILE * fpin, FILE ** fpout, BODY * b,
27                               BODY ** cur);
28
29 int pgp_gpgme_check_traditional (FILE * fp, BODY * b, int tagged_only);
30
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);
34
35 BODY *pgp_gpgme_make_key_attachment (char *tempf);
36
37 BODY *pgp_gpgme_sign_message (BODY * a);
38 BODY *smime_gpgme_sign_message (BODY * a);
39
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);
42
43 int smime_gpgme_verify_sender (HEADER* h);
44
45 int pgp_gpgme_send_menu (HEADER * msg, int *redraw);
46 int smime_gpgme_send_menu (HEADER * msg, int *redraw);
47
48 #endif