always build mutt with pgp + smime support.
[apps/madmutt.git] / smime.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 2001,2002 Oliver Ehli <elmy@acm.org>
4  * Copyright (C) 2004 g10 Code GmbH
5  *
6  * This file is part of mutt-ng, see http://www.muttng.org/.
7  * It's licensed under the GNU General Public License,
8  * please see the file GPL in the top level source directory.
9  */
10
11
12 #include "mutt_crypt.h"
13
14 void smime_void_passphrase (void);
15 int smime_valid_passphrase (void);
16
17 int smime_decrypt_mime (FILE *, FILE **, BODY *, BODY **);
18
19 int smime_application_smime_handler (BODY *, STATE *);
20
21
22 BODY *smime_sign_message (BODY *);
23
24 BODY *smime_build_smime_entity (BODY *, char *);
25
26 int smime_verify_one (BODY *, STATE *, const char *);
27
28
29 int smime_verify_sender (HEADER *);
30
31
32 char *smime_get_field_from_db (char *, char *, short, short);
33
34 void smime_getkeys (ENVELOPE *);
35
36 char *smime_ask_for_key (char *, char *, short);
37
38 char *smime_findKeys (address_t * to, address_t * cc, address_t * bcc);
39
40 void smime_invoke_import (char *, char *);
41
42 int smime_send_menu (HEADER * msg, int *redraw);