Andreas Krennmair:
[apps/madmutt.git] / smime.h
1 /*
2  * Copyright (C) 2001,2002 Oliver Ehli <elmy@acm.org>
3  * Copyright (C) 2004 g10 Code GmbH
4  *
5  *     This program is free software; you can redistribute it and/or modify
6  *     it under the terms of the GNU General Public License as published by
7  *     the Free Software Foundation; either version 2 of the License, or
8  *     (at your option) any later version.
9  * 
10  *     This program is distributed in the hope that it will be useful,
11  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *     GNU General Public License for more details.
14  * 
15  *     You should have received a copy of the GNU General Public License
16  *     along with this program; if not, write to the Free Software
17  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
18  */
19
20
21 #ifdef CRYPT_BACKEND_CLASSIC_SMIME
22
23 #include "mutt_crypt.h"
24
25
26
27
28
29 void smime_void_passphrase (void);
30 int smime_valid_passphrase (void);
31
32 int   smime_decrypt_mime (FILE *, FILE **, BODY *, BODY **);
33
34 void  smime_application_smime_handler (BODY *, STATE *);
35
36
37 BODY* smime_sign_message (BODY *);
38
39 BODY* smime_build_smime_entity (BODY *, char *);
40
41 int   smime_verify_one(BODY *, STATE *, const char *);
42
43
44 int   smime_verify_sender(HEADER *);
45
46
47 char* smime_get_field_from_db (char *, char *, short, short);
48
49 void  smime_getkeys (ENVELOPE *);
50
51 char* smime_ask_for_key (char *, char *, short);
52
53 char *smime_findKeys (ADDRESS *to, ADDRESS *cc, ADDRESS *bcc);
54
55 void  smime_invoke_import (char *, char *);
56
57 int smime_send_menu (HEADER *msg, int *redraw);
58
59 #endif
60
61